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, name
Fields inherited from interface de.grogra.reflect.Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptioncloneObject
(Object o, boolean deep) createArray
(int length) getDeclaredField
(int index) int
getDeclaredInterface
(int index) int
getDeclaredMethod
(int index) int
getDeclaredType
(int index) int
getDefaultElementValue
(String name) Returns a descriptor for this member.final Lookup
Returns the simple name of this member.int
Returns the type id of this type.boolean
isInstance
(Object object) boolean
toString()
Methods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getModifiers, getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.reflect.Member
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getModifiers, getName
-
Constructor Details
-
ASMType
-
-
Method Details
-
getTypeLoader
- Specified by:
getTypeLoader
in interfaceType
-
getTypeId
public int getTypeId()Description copied from interface:Type
Returns the type id of this type. -
getPackage
- Specified by:
getPackage
in interfaceType
-
getBinaryName
- Specified by:
getBinaryName
in interfaceType
-
isInstance
- Specified by:
isInstance
in interfaceType
-
getImplementationClass
- Specified by:
getImplementationClass
in interfaceType
-
getSupertype
- Specified by:
getSupertype
in interfaceType
-
getDeclaredInterfaceCount
public int getDeclaredInterfaceCount()- Specified by:
getDeclaredInterfaceCount
in interfaceType
-
getDeclaredInterface
- Specified by:
getDeclaredInterface
in interfaceType
-
getDeclaredFieldCount
public int getDeclaredFieldCount()- Specified by:
getDeclaredFieldCount
in interfaceType
-
getDeclaredField
- Specified by:
getDeclaredField
in interfaceType
-
getDeclaredTypeCount
public int getDeclaredTypeCount()- Specified by:
getDeclaredTypeCount
in interfaceType
-
getDeclaredType
- Specified by:
getDeclaredType
in interfaceType
-
getDeclaredMethodCount
public int getDeclaredMethodCount()- Specified by:
getDeclaredMethodCount
in interfaceType
-
getDeclaredMethod
- Specified by:
getDeclaredMethod
in interfaceType
-
getComponentType
- Specified by:
getComponentType
in interfaceType
-
getArrayType
- Specified by:
getArrayType
in interfaceType
-
createArray
- Specified by:
createArray
in interfaceType
-
cloneObject
- Specified by:
cloneObject
in interfaceType
- Throws:
CloneNotSupportedException
-
isStringSerializable
public boolean isStringSerializable()- Specified by:
isStringSerializable
in interfaceType
-
valueOf
-
newInstance
public Object newInstance() throws InvocationTargetException, InstantiationException, IllegalAccessException- Specified by:
newInstance
in interfaceType
- Throws:
InvocationTargetException
InstantiationException
IllegalAccessException
-
getDefaultElementValue
- Specified by:
getDefaultElementValue
in interfaceType
-
getLookup
-
getSimpleName
Description copied from interface:Member
Returns 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:
getSimpleName
in interfaceMember
- Overrides:
getSimpleName
in classMemberBase
- Returns:
- simple name of the member
-
getDescriptor
Description copied from interface:Member
Returns 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.,[[I
forint[][]
. 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;)V
for the methodPrintStream.println(String)
.
- Specified by:
getDescriptor
in interfaceMember
- Overrides:
getDescriptor
in 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
-
toString
- Overrides:
toString
in classMemberBase
-