java.lang.Object
de.grogra.reflect.MemberBase
de.grogra.reflect.FieldBase
- Direct Known Subclasses:
XField
-
Field Summary
FieldsFields inherited from class de.grogra.reflect.MemberBase
annots, declaringType, descriptor, modifiers, nameFields inherited from interface de.grogra.reflect.Field
FIELD_0, INTERFACE_MODIFIERS, MODIFIERSFields 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, VOLATILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(Object object) bytecharReturns a descriptor for this member.doublefloatintlongshortfinal TypegetType()voidsetBoolean(Object object, boolean value) voidvoidvoidvoidvoidvoidvoidvoidtoString()Methods inherited from class de.grogra.reflect.MemberBase
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getModifiers, getName, getSimpleNameMethods 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, getSimpleName
-
Field Details
-
type
-
-
Constructor Details
-
FieldBase
-
-
Method Details
-
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
-
getType
-
getBoolean
- Specified by:
getBooleanin interfaceField- Throws:
IllegalAccessException
-
setBoolean
- Specified by:
setBooleanin interfaceField- Throws:
IllegalAccessException
-
getByte
- Specified by:
getBytein interfaceField- Throws:
IllegalAccessException
-
setByte
- Specified by:
setBytein interfaceField- Throws:
IllegalAccessException
-
getShort
- Specified by:
getShortin interfaceField- Throws:
IllegalAccessException
-
setShort
- Specified by:
setShortin interfaceField- Throws:
IllegalAccessException
-
getChar
- Specified by:
getCharin interfaceField- Throws:
IllegalAccessException
-
setChar
- Specified by:
setCharin interfaceField- Throws:
IllegalAccessException
-
getInt
- Specified by:
getIntin interfaceField- Throws:
IllegalAccessException
-
setInt
- Specified by:
setIntin interfaceField- Throws:
IllegalAccessException
-
getLong
- Specified by:
getLongin interfaceField- Throws:
IllegalAccessException
-
setLong
- Specified by:
setLongin interfaceField- Throws:
IllegalAccessException
-
getFloat
- Specified by:
getFloatin interfaceField- Throws:
IllegalAccessException
-
setFloat
- Specified by:
setFloatin interfaceField- Throws:
IllegalAccessException
-
getDouble
- Specified by:
getDoublein interfaceField- Throws:
IllegalAccessException
-
setDouble
- Specified by:
setDoublein interfaceField- Throws:
IllegalAccessException
-
getObject
- Specified by:
getObjectin interfaceField- Throws:
IllegalAccessException
-
setObject
- Specified by:
setObjectin interfaceField- Throws:
IllegalAccessException
-
toString
- Overrides:
toStringin classMemberBase
-