|
Java Debug Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An entity declared within a user defined
type (class or interface).
This interface is the root of the type
component hierarchy which
includes Field
and Method
.
Type components of the same name declared in different classes
(including those related by inheritance) have different
TypeComponent objects.
TypeComponents can be used alone to retrieve static information
about their declaration, or can be used in conjunction with a
ReferenceType
or ObjectReference
to access values
or invoke, as applicable.
Method Summary | |
ReferenceType |
declaringType()
Returns the type in which this component was declared. |
boolean |
isFinal()
Determines if this TypeComponent is final. |
boolean |
isStatic()
Determines if this TypeComponent is static. |
boolean |
isSynthetic()
Determines if this TypeComponent is synthetic. |
String |
name()
Gets the name of this type component. |
String |
signature()
Gets the JNI-style signature for this type component. |
Methods inherited from interface com.sun.jdi.Mirror |
toString, virtualMachine |
Methods inherited from interface com.sun.jdi.Accessible |
isPackagePrivate, isPrivate, isProtected, isPublic, modifiers |
Method Detail |
public String name()
Note: for fields, this is the field name; for methods, this is the method name; for constructors, this is <init>; for static initializers, this is <clinit>.
public String signature()
Field.typeName()
and
Method.returnTypeName()
for ways to help get a more readable
representation of the type.
public ReferenceType declaringType()
ReferenceType
mirrors either a class or an
interface in the target VM.
public boolean isStatic()
true
if this type component was declared
static; false otherwise.public boolean isFinal()
true
if this type component was declared
final; false otherwise.public boolean isSynthetic()
Not all target VMs support this query. See
VirtualMachine.canGetSyntheticAttribute()
to determine if the
operation is supported.
true
if this type component is synthetic;
false
otherwise.
UnsupportedOperationException
- if the target
VM cannot provide information on synthetic attributes.
|
Java Debug Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |