Package org.apache.felix.framework.util
Class ClassParser.Clazz
java.lang.Object
org.apache.felix.framework.util.ClassParser.Clazz
- Enclosing class:
ClassParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class(package private) class(package private) static enumclassclassclass -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) int(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) int(package private) ClassParser.TypeRef(package private) final ClassParser(package private) String(package private) intprivate boolean(package private) static final short(package private) static final short(package private) static final short(package private) int(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) boolean(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) ClassParser.TypeRef[](package private) int[](package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) ClassParser.Clazz.FieldDef(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) int(package private) int(package private) static final short(package private) static final short(package private) static final short(package private) static final byte[](package private) String(package private) Object[](package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) static final short(package private) ClassParser.TypeRef -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidclassConstRef(int lastReference) private voidconstantClass(DataInput in, int poolIndex) private voidconstantDouble(DataInput in, int poolIndex) private voidconstantFloat(DataInput in, int poolIndex) private voidconstantInteger(DataInput in, int poolIndex) private voidconstantLong(DataInput in, int poolIndex) private voidconstantString(DataInput in, int poolIndex) private voidconstantUtf8(DataInput in, int poolIndex) private voidcrawl(byte[] code) private voiddoAnnotation(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) private voiddoAnnotations(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) private voiddoAttribute(DataInput in, ElementType member, boolean crawl, int access_flags) private voiddoAttributes(DataInput in, ElementType member, boolean crawl, int access_flags) private voidprivate void(package private) voidprivate ObjectdoElementValue(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) private void(package private) voiddoExceptions(DataInput in, int access_flags) private voidprivate voiddoParameterAnnotations(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) (package private) voiddoSignature(DataInput in, ElementType member, int access_flags) private voidprivate voidprivate voiddoTypeAnnotations(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) private intfindMethodReference(String clazz, String methodname, String descriptor) private static longgetUnsignedInt(int x) private static intgetUnsingedByte(byte b) private static intgetUnsingedShort(short s) private voidinvokeDynamic(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) booleanisModule()private voidmethodHandle(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) private voidmethodType(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) private voidnameAndType(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) voidparseDescriptor(String descriptor, int modifiers) private intparseFormalTypeParameters(String descriptor, int index, int modifiers) (package private) intparseReference(String descriptor, int rover, int modifiers) (package private) intparseReferences(String descriptor, int rover, char delimiter, int modifiers) private voidprivate void(package private) voidreferTo(int index, int modifiers) (package private) voidreferTo(ClassParser.TypeRef typeRef, int modifiers) voidreset()toString()private void
-
Field Details
-
ACC_MODULE
static final int ACC_MODULE- See Also:
-
hasDefaultConstructor
boolean hasDefaultConstructor -
depth
int depth -
className
ClassParser.TypeRef className -
pool
Object[] pool -
intPool
int[] intPool -
imports
-
path
String path -
minor
int minor -
major
int major -
accessx
int accessx -
forName
int forName -
class$
int class$ -
interfaces
ClassParser.TypeRef[] interfaces -
zuper
ClassParser.TypeRef zuper -
last
-
classParser
-
classSignature
String classSignature -
detectLdc
private boolean detectLdc -
bipush
static final short bipush- See Also:
-
sipush
static final short sipush- See Also:
-
ldc
static final short ldc- See Also:
-
ldc_w
static final short ldc_w- See Also:
-
ldc2_w
static final short ldc2_w- See Also:
-
iload
static final short iload- See Also:
-
lload
static final short lload- See Also:
-
fload
static final short fload- See Also:
-
dload
static final short dload- See Also:
-
aload
static final short aload- See Also:
-
istore
static final short istore- See Also:
-
lstore
static final short lstore- See Also:
-
fstore
static final short fstore- See Also:
-
dstore
static final short dstore- See Also:
-
iinc
static final short iinc- See Also:
-
ifeq
static final short ifeq- See Also:
-
astore
static final short astore- See Also:
-
ifne
static final short ifne- See Also:
-
iflt
static final short iflt- See Also:
-
ifge
static final short ifge- See Also:
-
ifgt
static final short ifgt- See Also:
-
ifle
static final short ifle- See Also:
-
if_icmpeq
static final short if_icmpeq- See Also:
-
if_icmpne
static final short if_icmpne- See Also:
-
if_icmplt
static final short if_icmplt- See Also:
-
if_icmpge
static final short if_icmpge- See Also:
-
if_icmpgt
static final short if_icmpgt- See Also:
-
if_icmple
static final short if_icmple- See Also:
-
if_acmpeq
static final short if_acmpeq- See Also:
-
if_acmpne
static final short if_acmpne- See Also:
-
goto_
static final short goto_- See Also:
-
jsr
static final short jsr- See Also:
-
ret
static final short ret- See Also:
-
tableswitch
static final short tableswitch- See Also:
-
lookupswitch
static final short lookupswitch- See Also:
-
getstatic
static final short getstatic- See Also:
-
putstatic
static final short putstatic- See Also:
-
getfield
static final short getfield- See Also:
-
putfield
static final short putfield- See Also:
-
invokevirtual
static final short invokevirtual- See Also:
-
invokespecial
static final short invokespecial- See Also:
-
invokestatic
static final short invokestatic- See Also:
-
invokeinterface
static final short invokeinterface- See Also:
-
invokedynamic
static final short invokedynamic- See Also:
-
new_
static final short new_- See Also:
-
newarray
static final short newarray- See Also:
-
anewarray
static final short anewarray- See Also:
-
checkcast
static final short checkcast- See Also:
-
instanceof_
static final short instanceof_- See Also:
-
wide
static final short wide- See Also:
-
multianewarray
static final short multianewarray- See Also:
-
ifnull
static final short ifnull- See Also:
-
ifnonnull
static final short ifnonnull- See Also:
-
goto_w
static final short goto_w- See Also:
-
jsr_w
static final short jsr_w- See Also:
-
OFFSETS
static final byte[] OFFSETS
-
-
Constructor Details
-
Clazz
-
-
Method Details
-
parseClassFileData
- Throws:
Exception
-
constantFloat
- Throws:
IOException
-
constantInteger
- Throws:
IOException
-
pool
-
nameAndType
private void nameAndType(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) throws IOException - Throws:
IOException
-
methodType
private void methodType(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) throws IOException - Throws:
IOException
-
methodHandle
private void methodHandle(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) throws IOException - Throws:
IOException
-
invokeDynamic
private void invokeDynamic(DataInput in, int poolIndex, ClassParser.Clazz.CONSTANT tag) throws IOException - Throws:
IOException
-
ref
- Throws:
IOException
-
constantString
- Throws:
IOException
-
constantClass
- Throws:
IOException
-
constantDouble
- Throws:
IOException
-
constantLong
- Throws:
IOException
-
constantUtf8
- Throws:
IOException
-
findMethodReference
-
doAttributes
private void doAttributes(DataInput in, ElementType member, boolean crawl, int access_flags) throws Exception - Throws:
Exception
-
getUnsignedInt
private static long getUnsignedInt(int x) -
getUnsingedByte
private static int getUnsingedByte(byte b) -
getUnsingedShort
private static int getUnsingedShort(short s) -
doAttribute
private void doAttribute(DataInput in, ElementType member, boolean crawl, int access_flags) throws Exception - Throws:
Exception
-
doEnclosingMethod
- Throws:
IOException
-
doInnerClasses
- Throws:
Exception
-
doSignature
- Throws:
IOException
-
doConstantValue
- Throws:
IOException
-
doExceptions
- Throws:
IOException
-
doCode
- Throws:
Exception
-
crawl
private void crawl(byte[] code) -
doSourceFile
- Throws:
IOException
-
doParameterAnnotations
private void doParameterAnnotations(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) throws Exception - Throws:
Exception
-
doTypeAnnotations
private void doTypeAnnotations(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) throws Exception - Throws:
Exception
-
doAnnotations
private void doAnnotations(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) throws Exception - Throws:
Exception
-
doAnnotation
private void doAnnotation(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) throws IOException - Throws:
IOException
-
doElementValue
private Object doElementValue(DataInput in, ElementType member, RetentionPolicy policy, int access_flags) throws IOException - Throws:
IOException
-
doBootstrapMethods
- Throws:
IOException
-
doStackMapTable
- Throws:
IOException
-
verification_type_info
- Throws:
IOException
-
referTo
-
referTo
void referTo(int index, int modifiers) -
parseDescriptor
-
parseReferences
-
parseReference
-
parseFormalTypeParameters
-
getReferred
-
reset
public void reset() -
toString
-
isModule
public boolean isModule() -
classConstRef
private void classConstRef(int lastReference)
-