Class AsmClass

java.lang.Object
gw.lang.reflect.java.asm.AsmClass
All Implemented Interfaces:
IAsmType, IGeneric

public class AsmClass extends Object implements IAsmType, IGeneric
  • Field Details

    • BYTE

      public static final AsmClass BYTE
    • SHORT

      public static final AsmClass SHORT
    • CHAR

      public static final AsmClass CHAR
    • INT

      public static final AsmClass INT
    • LONG

      public static final AsmClass LONG
    • FLOAT

      public static final AsmClass FLOAT
    • DOUBLE

      public static final AsmClass DOUBLE
    • BOOLEAN

      public static final AsmClass BOOLEAN
    • VOID

      public static final AsmClass VOID
    • PRIMITIVES

      private static final Map<String,AsmClass> PRIMITIVES
    • _module

      private Object _module
    • _uri

      private URI _uri
    • _version

      private int _version
    • _modifiers

      private int _modifiers
    • _type

      private AsmType _type
    • _superClass

      private AsmType _superClass
    • _interfaces

      private List<AsmType> _interfaces
    • _enclosingType

      private AsmType _enclosingType
    • _bGeneric

      private boolean _bGeneric
    • _innerClasses

      private Map<String,AsmInnerClassType> _innerClasses
    • _fields

      private List<AsmField> _fields
    • _methodsAndCtors

      private List<AsmMethod> _methodsAndCtors
    • _annotations

      private List<AsmAnnotation> _annotations
  • Constructor Details

  • Method Details

    • findPrimitive

      public static AsmClass findPrimitive(String className)
    • init

      public void init(byte[] classBytes)
    • getUri

      public URI getUri()
    • getType

      public AsmType getType()
    • getRawType

      public AsmType getRawType()
      Specified by:
      getRawType in interface IAsmType
    • getEnclosingType

      public AsmType getEnclosingType()
    • getComponentType

      public AsmType getComponentType()
      Specified by:
      getComponentType in interface IAsmType
    • getSuperClass

      public AsmType getSuperClass()
    • setSuperClass

      public void setSuperClass(AsmType type)
    • getInnerClasses

      public Map<String,AsmInnerClassType> getInnerClasses()
    • getInterfaces

      public List<AsmType> getInterfaces()
    • getDeclaredFields

      public List<AsmField> getDeclaredFields()
    • addField

      private void addField(AsmField field)
    • getDeclaredMethodsAndConstructors

      public List<AsmMethod> getDeclaredMethodsAndConstructors()
    • addMethod

      private void addMethod(AsmMethod method)
    • getDeclaredAnnotations

      public List<AsmAnnotation> getDeclaredAnnotations()
    • addAnnotation

      private void addAnnotation(AsmAnnotation annotation)
    • isGeneric

      public boolean isGeneric()
      Specified by:
      isGeneric in interface IGeneric
    • setGeneric

      public void setGeneric()
      Specified by:
      setGeneric in interface IGeneric
    • getModifiers

      public int getModifiers()
    • getVersion

      public int getVersion()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()
      Specified by:
      getName in interface IAsmType
    • getNameWithArrayBrackets

      public String getNameWithArrayBrackets()
    • getSimpleName

      public String getSimpleName()
      Specified by:
      getSimpleName in interface IAsmType
    • getTypeParameters

      public List<AsmType> getTypeParameters()
      Specified by:
      getTypeParameters in interface IAsmType
    • isParameterized

      public boolean isParameterized()
      Specified by:
      isParameterized in interface IAsmType
    • isArray

      public boolean isArray()
      Specified by:
      isArray in interface IAsmType
    • isTypeVariable

      public boolean isTypeVariable()
      Specified by:
      isTypeVariable in interface IAsmType
    • isPrimitive

      public boolean isPrimitive()
      Specified by:
      isPrimitive in interface IAsmType
    • getFqn

      public String getFqn()
      Specified by:
      getFqn in interface IAsmType
    • isInterface

      public boolean isInterface()
    • isEnum

      public boolean isEnum()
    • isAnnotation

      public boolean isAnnotation()
    • isAnnotationPresent

      public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
    • getAnnotation

      public AsmAnnotation getAnnotation(Class annotationClass)