java.lang.Object
de.grogra.reflect.MemberBase
de.grogra.xl.compiler.ASMType
-
Field Summary
Fields inherited from class de.grogra.reflect.MemberBase
annots, declaringType, descriptor, modifiers, nameFields inherited from interface de.grogra.reflect.Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, GLOBAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILEFields inherited from interface de.grogra.reflect.Type
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, FLOATING_POINT, INT, INTEGRAL, INVALID, LOCAL_CLASS_MODIFIERS, LONG, MEMBER_CLASS_MODIFIERS, MEMBER_INTERFACE_MODIFIERS, NULL, NUMBER, NUMERIC, OBJECT, SHORT, STRING, TEXTAREA, TOP_LEVEL_CLASS_MODIFIERS, TOP_LEVEL_INTERFACE_MODIFIERS, TYPE, TYPE_0, VOID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneObject(Object o, boolean deep) createArray(int length) getDeclaredField(int index) intgetDeclaredInterface(int index) intgetDeclaredMethod(int index) intgetDeclaredType(int index) intgetDefaultElementValue(String name) Returns a descriptor for this member.final LookupReturns the simple name of this member.intReturns the type id of this type.booleanisInstance(Object object) booleantoString()Methods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getModifiers, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.reflect.Member
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getModifiers, getName
-
Constructor Details
-
ASMType
-
-
Method Details
-
getTypeLoader
- Specified by:
getTypeLoaderin interfaceType
-
getTypeId
public int getTypeId()Description copied from interface:TypeReturns the type id of this type. -
getPackage
- Specified by:
getPackagein interfaceType
-
getBinaryName
- Specified by:
getBinaryNamein interfaceType
-
isInstance
- Specified by:
isInstancein interfaceType
-
getImplementationClass
- Specified by:
getImplementationClassin interfaceType
-
getSupertype
- Specified by:
getSupertypein interfaceType
-
getDeclaredInterfaceCount
public int getDeclaredInterfaceCount()- Specified by:
getDeclaredInterfaceCountin interfaceType
-
getDeclaredInterface
- Specified by:
getDeclaredInterfacein interfaceType
-
getDeclaredFieldCount
public int getDeclaredFieldCount()- Specified by:
getDeclaredFieldCountin interfaceType
-
getDeclaredField
- Specified by:
getDeclaredFieldin interfaceType
-
getDeclaredTypeCount
public int getDeclaredTypeCount()- Specified by:
getDeclaredTypeCountin interfaceType
-
getDeclaredType
- Specified by:
getDeclaredTypein interfaceType
-
getDeclaredMethodCount
public int getDeclaredMethodCount()- Specified by:
getDeclaredMethodCountin interfaceType
-
getDeclaredMethod
- Specified by:
getDeclaredMethodin interfaceType
-
getComponentType
- Specified by:
getComponentTypein interfaceType
-
getArrayType
- Specified by:
getArrayTypein interfaceType
-
createArray
- Specified by:
createArrayin interfaceType
-
cloneObject
- Specified by:
cloneObjectin interfaceType- Throws:
CloneNotSupportedException
-
isStringSerializable
public boolean isStringSerializable()- Specified by:
isStringSerializablein interfaceType
-
valueOf
-
newInstance
public Object newInstance() throws InvocationTargetException, InstantiationException, IllegalAccessException- Specified by:
newInstancein interfaceType- Throws:
InvocationTargetExceptionInstantiationExceptionIllegalAccessException
-
getDefaultElementValue
- Specified by:
getDefaultElementValuein interfaceType
-
getLookup
-
getSimpleName
Description copied from interface:MemberReturns the simple name of this member. This is the single identifier with which the member is declared in source code, e.g.,Object,out,println.- Specified by:
getSimpleNamein interfaceMember- Overrides:
getSimpleNamein classMemberBase- Returns:
- simple name of the member
-
getDescriptor
Description copied from interface:MemberReturns a descriptor for this member. Descriptors are constructed as follows:- For types, descriptors are defined as for the Java Virtual
Machine. For primitive types these are the single characters
'Z', 'B', 'S', 'C', 'I', 'J', 'F', 'D', 'V'
for
boolean,byte,short,char,int,long,float,double,void. For array types, the descriptor is the character '[' plus the descriptor of its component type, e.g.,[[Iforint[][]. For non-array reference types, the descriptor is the character 'L', followed by the binary name (seeType.getBinaryName()) of the type, where '.' has to be replaced by '/', followed by ';', e.g.,Ljava/lang/Object;. - For fields, the descriptor is the character 'f', followed by the
simple name of the field, followed by the character ';', followed
by the descriptor of the field's type. E.g.,
fout;Ljava/io/PrintStream;for the fieldSystem.out. - For methods and constructors, the descriptor is the character
'm', followed by the simple name of the method (which is
<init>for constructors), followed by the characters ';' and '(', followed by the descriptors of the method's parameter types, followed by ')', followed by the descriptor of the return type. E.g.mprintln;(Ljava/lang/String;)Vfor the methodPrintStream.println(String).
- Specified by:
getDescriptorin interfaceMember- Overrides:
getDescriptorin classMemberBase- Returns:
- the member's descriptor
- For types, descriptors are defined as for the Java Virtual
Machine. For primitive types these are the single characters
'Z', 'B', 'S', 'C', 'I', 'J', 'F', 'D', 'V'
for
-
getSignature
- Specified by:
getSignaturein interfaceType
-
toString
- Overrides:
toStringin classMemberBase
-