| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private String | |
| private String | |
| private String | |
| private ClassLoaderReference | |
| private ClassObjectReference | |
| private int | |
| private SoftReference | |
| private boolean | |
| private SoftReference | |
| private String | |
| private boolean | |
| private static final int | |
| private boolean | |
| private boolean | |
| private int | |
| private SoftReference | |
| private int | |
| protected int | |
| private ModuleReference | |
| pack-priv static final SDE | |
| protected long | |
| private SoftReference | |
| private String | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv abstract void | |
| public List | allFields()
Implements com. Returns a list containing each |
| public List | allLineLocations()
Implements com. Returns a list containing a |
| public List | allLineLocations(String stratumID, String sourceName)
Implements com. Returns a list containing a |
| public abstract List | allMethods()
Redeclares com. Returns a list containing each |
| public List | availableStrata()
Implements com. Return the available strata for this reference type. |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| public ClassLoaderReference | classLoader()
Implements com. Gets the classloader object which loaded the class corresponding to this type. |
| public ClassObjectReference | classObject()
Implements com. Returns the class object that corresponds to this type in the target VM. |
| public int | compareTo(ReferenceType object)
Implements java. Compares this object with the specified object for order. |
| public byte[] | constantPool()
Implements com. Returns the raw bytes of the constant pool in the format of the constant_pool item of the Class File Format in the Java Virtual Machine Specification. |
| public int | constantPoolCount()
Implements com. Returns the number of entries in the constant pool plus one. |
| pack-priv void | |
| public String | defaultStratum()
Implements com. Always returns non-null stratumID |
| public boolean | equals(Object obj)
Overrides com. Implements com. Compares the specified Object with this ReferenceType for equality. |
| public boolean | failedToInitialize()
Implements com. Determines if initialization failed for this class. |
| public Field | fieldByName(String fieldName)
Implements com. Finds the visible |
| public List | fields()
Implements com. Returns a list containing each |
| pack-priv Type | |
| public String | genericSignature()
Implements com. Gets the generic signature for this type if there is one. |
| private void | |
| private byte[] | |
| pack-priv Field | |
| pack-priv List | |
| pack-priv Method | |
| pack-priv void | |
| public Value | |
| public Map | getValues(List<? extends Field> theFields)
Implements com. Returns a map of field values |
| public int | hashCode()
Overrides com. Implements com. Returns the hash code value for this ObjectReference. |
| pack-priv int | |
| pack-priv int | |
| pack-priv abstract List | |
| public List | instances(long maxInstances)
Implements com. Returns instances of this ReferenceType. |
| public boolean | isAbstract()
Implements com. Determines if this type was declared abstract. |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv abstract boolean | |
| public boolean | |
| public boolean | isInitialized()
Implements com. Determines if this type has been initialized. |
| private static boolean | |
| public boolean | isPackagePrivate()
Implements com. Determines if this object mirrors a package private item. |
| public boolean | isPrepared()
Implements com. Determines if this type has been prepared. |
| public boolean | isPrivate()
Implements com. Determines if this object mirrors a private item. |
| public boolean | isProtected()
Implements com. Determines if this object mirrors a protected item. |
| public boolean | isPublic()
Implements com. Determines if this object mirrors a public item. |
| public boolean | isStatic()
Implements com. Determines if this type was declared static. |
| public boolean | isVerified()
Implements com. Determines if this type has been verified. |
| pack-priv String | |
| public List | locationsOfLine(int lineNumber)
Implements com. Returns a List containing all |
| public List | locationsOfLine(String stratumID, String sourceName, int lineNumber)
Implements com. Returns a List containing all |
| public int | majorVersion()
Implements com. Returns the class major version number, as defined in the class file format of the Java Virtual Machine Specification. |
| pack-priv void | |
| public List | methods()
Implements com. Returns a list containing each |
| private List | |
| public List | methodsByName(String name)
Implements com. Returns a List containing each visible |
| public List | methodsByName(String name, String signature)
Implements com. Returns a List containing each visible |
| public int | minorVersion()
Implements com. Returns the class minor version number, as defined in the class file format of the Java Virtual Machine Specification. |
| public int | modifiers()
Implements com. Returns the Java programming language modifiers, encoded in an integer. |
| public ModuleReference | module()
Overrides default com. Gets the module object which contains the class corresponding to this type. |
| public List | nestedTypes()
Implements com. Returns a List containing |
| pack-priv void | |
| pack-priv long | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public String | signature()
Implements abstract com. Implements com. Returns the type signature for this type. |
| public String | sourceDebugExtension()
Implements com. Get the source debug extension of this type. |
| private SDE | |
| public String | sourceName()
Implements com. Gets an identifying name for the source corresponding to the declaration of this type. |
| public List | sourceNames(String stratumID)
Implements com. Gets the identifying names for all the source corresponding to the declaration of this type. |
| public List | sourcePaths(String stratumID)
Implements com. Gets the paths to the source corresponding to the declaration of this type. |
| pack-priv SDE. | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public List | visibleFields()
Implements com. Returns a list containing each unhidden and unambiguous |
| public List | visibleMethods()
Implements com. Returns a list containing each |
| ABSENT_BASE_SOURCE_NAME | back to summary |
|---|---|
| private static final String ABSENT_BASE_SOURCE_NAME | |
| baseSourceDir | back to summary |
|---|---|
| private String baseSourceDir | |
| baseSourceName | back to summary |
|---|---|
| private String baseSourceName | |
| baseSourcePath | back to summary |
|---|---|
| private String baseSourcePath | |
| classLoader | back to summary |
|---|---|
| private ClassLoaderReference classLoader | |
| classObject | back to summary |
|---|---|
| private ClassObjectReference classObject | |
| constanPoolCount | back to summary |
|---|---|
| private int constanPoolCount | |
| constantPoolBytesRef | back to summary |
|---|---|
| private SoftReference<byte[]> constantPoolBytesRef | |
| constantPoolInfoGotten | back to summary |
|---|---|
| private boolean constantPoolInfoGotten | |
| fieldsRef | back to summary |
|---|---|
| private SoftReference<List<Field>> fieldsRef | |
| genericSignature | back to summary |
|---|---|
| private String genericSignature | |
| genericSignatureGotten | back to summary |
|---|---|
| private boolean genericSignatureGotten | |
| INITIALIZED_OR_FAILED | back to summary |
|---|---|
| private static final int INITIALIZED_OR_FAILED | |
| isClassLoaderCached | back to summary |
|---|---|
| private boolean isClassLoaderCached | |
| isPrepared | back to summary |
|---|---|
| private boolean isPrepared | |
| majorVersion | back to summary |
|---|---|
| private int majorVersion | |
| methodsRef | back to summary |
|---|---|
| private SoftReference<List<Method>> methodsRef | |
| minorVersion | back to summary |
|---|---|
| private int minorVersion | |
| modifiers | back to summary |
|---|---|
| protected int modifiers | |
| module | back to summary |
|---|---|
| private ModuleReference module | |
| NO_SDE_INFO_MARK | back to summary |
|---|---|
| pack-priv static final SDE NO_SDE_INFO_MARK | |
| ref | back to summary |
|---|---|
| protected long ref | |
| sdeRef | back to summary |
|---|---|
| private SoftReference<SDE> sdeRef | |
| signature | back to summary |
|---|---|
| private String signature | |
| status | back to summary |
|---|---|
| private int status | |
| versionNumberGotten | back to summary |
|---|---|
| private boolean versionNumberGotten | |
| ReferenceTypeImpl | back to summary |
|---|---|
| protected ReferenceTypeImpl(VirtualMachine aVm, long aRef) | |
| addAllFields | back to summary |
|---|---|
| pack-priv void addAllFields(List<Field> fieldList, Set<ReferenceType> typeSet) | |
| addToMethodMap | back to summary |
|---|---|
| pack-priv void addToMethodMap(Map<String, Method> methodMap, List<Method> methodList) | |
| addVisibleFields | back to summary |
|---|---|
| pack-priv void addVisibleFields(List<Field> visibleList, Map<String, Field> visibleTable, List<String> ambiguousNames) | |
| addVisibleMethods | back to summary |
|---|---|
| pack-priv abstract void addVisibleMethods(Map<String, Method> methodMap, Set<InterfaceType> seenInterfaces) | |
| allFields | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list containing each
For arrays ( | |
| allLineLocations | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list containing a
This method is equivalent to
| |
| allLineLocations | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list containing a
For arrays (
Returned list is for the specified stratum
(see
| |
| allMethods | back to summary |
|---|---|
| public abstract List Redeclares com. Doc from com. Returns a list containing each
For arrays ( | |
| availableStrata | back to summary |
|---|---|
| public List Implements com. Doc from com. Return the available strata for this reference type.
See the | |
| baseSourceDir | back to summary |
|---|---|
| pack-priv String baseSourceDir() | |
| baseSourceName | back to summary |
|---|---|
| pack-priv String baseSourceName() throws AbsentInformationException | |
| baseSourcePath | back to summary |
|---|---|
| pack-priv String baseSourcePath() throws AbsentInformationException | |
| classLoader | back to summary |
|---|---|
| public ClassLoaderReference classLoader() Implements com. Doc from com. Gets the classloader object which loaded the class corresponding to this type. | |
| classObject | back to summary |
|---|---|
| public ClassObjectReference classObject() Implements com. Doc from com. Returns the class object that corresponds to this type in the target VM. The VM creates class objects for every kind of ReferenceType: classes, interfaces, and array types. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(ReferenceType object) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| constantPool | back to summary |
|---|---|
| public byte[] constantPool() Implements com. Doc from com. Returns the raw bytes of the constant pool in the format of the
constant_pool item of the Class File Format in the Java Virtual
Machine Specification. The format of the constant pool may
differ between versions of the Class File Format, so, the
minor and major class version numbers should be checked for
compatibility.
For arrays ( | |
| constantPoolCount | back to summary |
|---|---|
| public int constantPoolCount() Implements com. Doc from com. Returns the number of entries in the constant pool plus one.
This corresponds to the constant_pool_count item of the Class File Format
in the Java Virtual Machine Specification.
For arrays ( | |
| decodeStatus | back to summary |
|---|---|
| pack-priv void decodeStatus(int status) | |
| defaultStratum | back to summary |
|---|---|
| public String defaultStratum() Implements com. Always returns non-null stratumID | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides com. Implements com. Doc from com. Compares the specified Object with this ReferenceType for equality. | |
| failedToInitialize | back to summary |
|---|---|
| public boolean failedToInitialize() Implements com. Doc from com. Determines if initialization failed for this class. See the JVM specification for details on class initialization.
For arrays ( | |
| fieldByName | back to summary |
|---|---|
| public Field fieldByName(String fieldName) Implements com. Doc from com. Finds the visible
For arrays ( | |
| fields | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list containing each
For arrays ( | |
| findType | back to summary |
|---|---|
| pack-priv Type findType(String signature) throws ClassNotLoadedException | |
| genericSignature | back to summary |
|---|---|
| public String genericSignature() Implements com. Doc from com. Gets the generic signature for this type if there is one. Generic signatures are described in the The Java Virtual Machine Specification. | |
| getClassFileVersion | back to summary |
|---|---|
| private void getClassFileVersion() | |
| getConstantPoolInfo | back to summary |
|---|---|
| private byte[] getConstantPoolInfo() | |
| getFieldMirror | back to summary |
|---|---|
| pack-priv Field getFieldMirror(long ref) | |
| getInterfaces | back to summary |
|---|---|
| pack-priv List | |
| getMethodMirror | back to summary |
|---|---|
| pack-priv Method getMethodMirror(long ref) | |
| getModifiers | back to summary |
|---|---|
| pack-priv void getModifiers() | |
| getValue | back to summary |
|---|---|
| public Value getValue(Field sig) Implements com. Doc from com. Gets the | |
| getValues | back to summary |
|---|---|
| public Map Implements com. Returns a map of field values | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements com. Doc from com. Returns the hash code value for this ObjectReference.
| |
| indexOf | back to summary |
|---|---|
| pack-priv int indexOf(Method method) | |
| indexOf | back to summary |
|---|---|
| pack-priv int indexOf(Field field) | |
| inheritedTypes | back to summary |
|---|---|
| pack-priv abstract List | |
| instances | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns instances of this ReferenceType. Only instances that are reachable for the purposes of garbage collection are returned.
Not all target virtual machines support this operation.
Use | |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Implements com. Doc from com. Determines if this type was declared abstract.
For arrays ( | |
| isAssignableFrom | back to summary |
|---|---|
| pack-priv boolean isAssignableFrom(ReferenceType type) | |
| isAssignableFrom | back to summary |
|---|---|
| pack-priv boolean isAssignableFrom(ObjectReference object) | |
| isAssignableTo | back to summary |
|---|---|
| pack-priv abstract boolean isAssignableTo(ReferenceType type) | |
| isFinal | back to summary |
|---|---|
| public boolean isFinal() Implements com. Doc from com. Determines if this type was declared final.
For arrays ( | |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Implements com. Doc from com. Determines if this type has been initialized. See the JVM
specification for a definition of class verification.
For
For arrays ( | |
| isOneDimensionalPrimitiveArray | back to summary |
|---|---|
| private static boolean isOneDimensionalPrimitiveArray(String signature) | |
| isPackagePrivate | back to summary |
|---|---|
| public boolean isPackagePrivate() Implements com. Doc from com. Determines if this object mirrors a package private item.
A package private item is declared with no access specifier.
For | |
| isPrepared | back to summary |
|---|---|
| public boolean isPrepared() Implements com. Doc from com. Determines if this type has been prepared. See the JVM specification for a definition of class preparation.
For arrays ( | |
| isPrivate | back to summary |
|---|---|
| public boolean isPrivate() Implements com. Doc from com. Determines if this object mirrors a private item.
For | |
| isProtected | back to summary |
|---|---|
| public boolean isProtected() Implements com. Doc from com. Determines if this object mirrors a protected item.
For | |
| isPublic | back to summary |
|---|---|
| public boolean isPublic() Implements com. Doc from com. Determines if this object mirrors a public item.
For | |
| isStatic | back to summary |
|---|---|
| public boolean isStatic() Implements com. Doc from com. Determines if this type was declared static. Only nested types,
can be declared static, so | |
| isVerified | back to summary |
|---|---|
| public boolean isVerified() Implements com. Doc from com. Determines if this type has been verified. See the JVM specification for a definition of class verification.
For arrays ( | |
| loaderString | back to summary |
|---|---|
| pack-priv String loaderString() | |
| locationsOfLine | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a List containing all
This method is equivalent to
| |
| locationsOfLine | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a List containing all
For arrays (
Returned list is for the specified stratum
(see
| |
| majorVersion | back to summary |
|---|---|
| public int majorVersion() Implements com. Doc from com. Returns the class major version number, as defined in the class file format
of the Java Virtual Machine Specification.
For arrays ( | |
| markPrepared | back to summary |
|---|---|
| pack-priv void markPrepared() | |
| methods | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list containing each
For arrays ( | |
| methods1_4 | back to summary |
|---|---|
| private List | |
| methodsByName | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a List containing each visible Overridden and hidden methods are not included. See JLS (8.4.8) for details.
For arrays ( | |
| methodsByName | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a List containing each visible
At most one method in the list is a concrete method and a
component of
For arrays ( | |
| minorVersion | back to summary |
|---|---|
| public int minorVersion() Implements com. Doc from com. Returns the class minor version number, as defined in the class file format
of the Java Virtual Machine Specification.
For arrays ( | |
| modifiers | back to summary |
|---|---|
| public int modifiers() Implements com. Doc from com. Returns the Java programming language modifiers, encoded in an integer.
The modifier encodings are defined in
The Java Virtual Machine Specification
in the | |
| module | back to summary |
|---|---|
| public ModuleReference module() Overrides default com. Doc from com. Gets the module object which contains the class corresponding
to this type.
Not all target virtual machines support this operation.
Use | |
| nestedTypes | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a List containing
For arrays ( | |
| noticeRedefineClass | back to summary |
|---|---|
| pack-priv void noticeRedefineClass() | |
| ref | back to summary |
|---|---|
| pack-priv long ref() | |
| setGenericSignature | back to summary |
|---|---|
| pack-priv void setGenericSignature(String signature) | |
| setSignature | back to summary |
|---|---|
| pack-priv void setSignature(String signature) | |
| setStatus | back to summary |
|---|---|
| pack-priv void setStatus(int status) | |
| signature | back to summary |
|---|---|
| public String signature() Implements abstract com. Implements com. Doc from com. Returns the type signature for this type. The result is of the same
form as the string returned by | |
| sourceDebugExtension | back to summary |
|---|---|
| public String sourceDebugExtension() throws AbsentInformationException Implements com. Doc from com. Get the source debug extension of this type.
Not all target virtual machines support this operation.
Use
| |
| sourceDebugExtensionInfo | back to summary |
|---|---|
| private SDE sourceDebugExtensionInfo() | |
| sourceName | back to summary |
|---|---|
| public String sourceName() throws AbsentInformationException Implements com. Doc from com. Gets an identifying name for the source corresponding to the declaration of this type. Interpretation of this string is the responsibility of the source repository mechanism.
The returned name is dependent on VM's default stratum
(
For arrays (
| |
| sourceNames | back to summary |
|---|---|
| public List Implements com. Doc from com. Gets the identifying names for all the source corresponding to the declaration of this type. Interpretation of these names is the responsibility of the source repository mechanism.
The returned names are for the specified stratum
(see
| |
| sourcePaths | back to summary |
|---|---|
| public List Implements com. Doc from com. Gets the paths to the source corresponding to the declaration of this type. Interpretation of these paths is the responsibility of the source repository mechanism.
The returned paths are for the specified stratum
(see
| |
| stratum | back to summary |
|---|---|
| pack-priv SDE. | |
| updateStatus | back to summary |
|---|---|
| pack-priv void updateStatus() | |
| validateFieldAccess | back to summary |
|---|---|
| pack-priv void validateFieldAccess(Field field) | |
| validateFieldSet | back to summary |
|---|---|
| pack-priv void validateFieldSet(Field field) | |
| visibleFields | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list containing each unhidden and unambiguous
For arrays ( | |
| visibleMethods | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list containing each
Note that despite this exclusion, multiple inherited methods
with the same signature can be present in the returned list, but
at most one can be a member of a
For arrays ( | |