Interface SourceFileAttribute
- All Superinterfaces:
Attribute<SourceFileAttribute>, ClassElement, ClassFileElement
Models the
SourceFile
attribute (JVMS 4.7.10), which
can appear on classes. Delivered as a ClassElement
when traversing a ClassModel
.
The attribute does not permit multiple instances in a given location. Subsequent occurrence of the attribute takes precedence during the attributed element build or transformation.
- Since:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionstatic SourceFileAttribute
Returns a source file attribute.static SourceFileAttribute
Returns a source file attribute.Returns the name of the source file from which this class was compiled.Methods declared in interface Attribute
attributeMapper, attributeName
-
Method Details
-
sourceFile
Utf8Entry sourceFile()Returns the name of the source file from which this class was compiled.- Returns:
- the name of the source file from which this class was compiled
-
of
Returns a source file attribute.- Parameters:
sourceFile
- the source file name- Returns:
- a source file attribute
-
of
Returns a source file attribute.- Parameters:
sourceFile
- the source file name- Returns:
- a source file attribute
-