Class SourceAttribute
- java.lang.Object
-
- com.strobel.assembler.ir.attributes.SourceAttribute
-
- Direct Known Subclasses:
AnnotationDefaultAttribute
,AnnotationsAttribute
,BlobAttribute
,BootstrapMethodsAttribute
,CodeAttribute
,ConstantValueAttribute
,EnclosingMethodAttribute
,ExceptionsAttribute
,InnerClassesAttribute
,LineNumberTableAttribute
,LocalVariableTableAttribute
,MethodParametersAttribute
,ModuleAttribute
,ModuleMainClassAttribute
,ModulePackagesAttribute
,ModuleTargetAttribute
,ParameterAnnotationsAttribute
,PermittedSubclassesAttribute
,RecordAttribute
,SignatureAttribute
,SourceFileAttribute
public class SourceAttribute extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SourceAttribute(java.lang.String name, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SourceAttribute
create(java.lang.String name)
static <T extends SourceAttribute>
Tfind(java.lang.String name, SourceAttribute... attributes)
static <T extends SourceAttribute>
Tfind(java.lang.String name, java.util.List<SourceAttribute> attributes)
int
getLength()
java.lang.String
getName()
static SourceAttribute
readAttribute(IMetadataResolver resolver, IMetadataScope scope, Buffer buffer)
static void
readAttributes(IMetadataResolver resolver, IMetadataScope scope, Buffer input, SourceAttribute[] attributes)
-
-
-
Method Detail
-
getName
public final java.lang.String getName()
-
getLength
public final int getLength()
-
create
public static SourceAttribute create(java.lang.String name)
-
find
public static <T extends SourceAttribute> T find(java.lang.String name, SourceAttribute... attributes)
-
find
public static <T extends SourceAttribute> T find(java.lang.String name, java.util.List<SourceAttribute> attributes)
-
readAttributes
public static void readAttributes(IMetadataResolver resolver, IMetadataScope scope, Buffer input, SourceAttribute[] attributes)
-
readAttribute
public static SourceAttribute readAttribute(IMetadataResolver resolver, IMetadataScope scope, Buffer buffer)
-
-