Package com.strobel.assembler.metadata
Class ClassFileReader.Scope
- java.lang.Object
-
- com.strobel.assembler.metadata.ClassFileReader.Scope
-
- All Implemented Interfaces:
IMetadataScope
- Enclosing class:
- ClassFileReader
static class ClassFileReader.Scope extends java.lang.Object implements IMetadataScope
-
-
Field Summary
Fields Modifier and Type Field Description private ConstantPool_constantPoolprivate MetadataParser_parserprivate TypeDefinition_typeDefinition
-
Constructor Summary
Constructors Constructor Description Scope(MetadataParser parser, TypeDefinition typeDefinition, ConstantPool constantPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectlookup(int token)<T> TlookupConstant(int token)DynamicCallSitelookupDynamicCallSite(int token)FieldReferencelookupField(int token)FieldReferencelookupField(int typeToken, int nameAndTypeToken)MethodReferencelookupMethod(int token)MethodReferencelookupMethod(int typeToken, int nameAndTypeToken)MethodHandlelookupMethodHandle(int token)IMethodSignaturelookupMethodType(int token)TypeReferencelookupType(int token)
-
-
-
Field Detail
-
_parser
private final MetadataParser _parser
-
_typeDefinition
private final TypeDefinition _typeDefinition
-
_constantPool
private final ConstantPool _constantPool
-
-
Constructor Detail
-
Scope
Scope(MetadataParser parser, TypeDefinition typeDefinition, ConstantPool constantPool)
-
-
Method Detail
-
lookupType
public TypeReference lookupType(int token)
- Specified by:
lookupTypein interfaceIMetadataScope
-
lookupField
public FieldReference lookupField(int token)
- Specified by:
lookupFieldin interfaceIMetadataScope
-
lookupMethod
public MethodReference lookupMethod(int token)
- Specified by:
lookupMethodin interfaceIMetadataScope
-
lookupMethodHandle
public MethodHandle lookupMethodHandle(int token)
- Specified by:
lookupMethodHandlein interfaceIMetadataScope
-
lookupMethodType
public IMethodSignature lookupMethodType(int token)
- Specified by:
lookupMethodTypein interfaceIMetadataScope
-
lookupDynamicCallSite
public DynamicCallSite lookupDynamicCallSite(int token)
- Specified by:
lookupDynamicCallSitein interfaceIMetadataScope
-
lookupField
public FieldReference lookupField(int typeToken, int nameAndTypeToken)
- Specified by:
lookupFieldin interfaceIMetadataScope
-
lookupMethod
public MethodReference lookupMethod(int typeToken, int nameAndTypeToken)
- Specified by:
lookupMethodin interfaceIMetadataScope
-
lookupConstant
public <T> T lookupConstant(int token)
- Specified by:
lookupConstantin interfaceIMetadataScope
-
lookup
public java.lang.Object lookup(int token)
- Specified by:
lookupin interfaceIMetadataScope
-
-