Package gw.lang.reflect.java.asm
Class AsmField
- java.lang.Object
-
- gw.lang.reflect.java.asm.AsmField
-
public class AsmField extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AsmAnnotation>_annotationsprivate int_modifiersprivate java.lang.String_nameprivate AsmClass_ownerprivate java.lang.Object_staticValueprivate AsmType_type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddAnnotation(AsmAnnotation asmAnnotation)AsmAnnotationgetAnnotation(java.lang.Class annotationClass)java.util.List<AsmAnnotation>getAnnotations()AsmClassgetDeclaringClass()intgetModifiers()java.lang.StringgetName()java.lang.ObjectgetStaticValue()AsmTypegetType()booleanisAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)booleanisEnumConstant()booleanisSynthetic()voidsetType(AsmType type)java.lang.StringtoString()
-
-
-
Field Detail
-
_name
private java.lang.String _name
-
_modifiers
private int _modifiers
-
_type
private AsmType _type
-
_annotations
private java.util.List<AsmAnnotation> _annotations
-
_owner
private AsmClass _owner
-
_staticValue
private java.lang.Object _staticValue
-
-
Constructor Detail
-
AsmField
public AsmField(AsmClass owner, int access, java.lang.String name, java.lang.String desc, java.lang.Object value)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getModifiers
public int getModifiers()
-
isSynthetic
public boolean isSynthetic()
-
isEnumConstant
public boolean isEnumConstant()
-
getType
public AsmType getType()
-
setType
public void setType(AsmType type)
-
getDeclaringClass
public AsmClass getDeclaringClass()
-
getAnnotations
public java.util.List<AsmAnnotation> getAnnotations()
-
addAnnotation
void addAnnotation(AsmAnnotation asmAnnotation)
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
-
getAnnotation
public AsmAnnotation getAnnotation(java.lang.Class annotationClass)
-
getStaticValue
public java.lang.Object getStaticValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-