APIdia Launch Partner
Top Fields Constructors Methods
com.sun.tools.jdi

public abstract Class TypeComponentImpl

extends MirrorImpl
implements TypeComponent
Class Inheritance
All Implemented Interfaces
com.sun.jdi.TypeComponent, com.sun.jdi.Accessible, com.sun.jdi.Mirror
Known Direct Subclasses
com.sun.tools.jdi.FieldImpl, com.sun.tools.jdi.MethodImpl
Imports
com.sun.jdi.ReferenceType, .TypeComponent, .VirtualMachine

Field Summary

Modifier and TypeField and Description
protected final ReferenceTypeImpl
protected final String
private final int
protected final String
protected final long
protected final String
Inherited from com.sun.tools.jdi.MirrorImpl:
vm

Constructor Summary

AccessConstructor and Description
pack-priv
TypeComponentImpl(VirtualMachine vm, ReferenceTypeImpl declaringType, long ref, String name, String signature, String genericSignature, int modifiers)

Method Summary

Modifier and TypeMethod and Description
public ReferenceType
declaringType()

Implements com.sun.jdi.TypeComponent.declaringType.

Returns the type in which this component was declared.

public String
genericSignature()

Implements com.sun.jdi.TypeComponent.genericSignature.

Gets the generic signature for this TypeComponent if there is one.

public boolean
isFinal()

Implements com.sun.jdi.TypeComponent.isFinal.

Determines if this TypeComponent is final.

pack-priv boolean
isModifierSet(int compareBits)

public boolean
isPackagePrivate()

Implements com.sun.jdi.Accessible.isPackagePrivate.

Determines if this object mirrors a package private item.

public boolean
isPrivate()

Implements com.sun.jdi.Accessible.isPrivate.

Determines if this object mirrors a private item.

public boolean
isProtected()

Implements com.sun.jdi.Accessible.isProtected.

Determines if this object mirrors a protected item.

public boolean
isPublic()

Implements com.sun.jdi.Accessible.isPublic.

Determines if this object mirrors a public item.

public boolean
isStatic()

Implements com.sun.jdi.TypeComponent.isStatic.

Determines if this TypeComponent is static.

public boolean
isSynthetic()

Implements com.sun.jdi.TypeComponent.isSynthetic.

Determines if this TypeComponent is synthetic.

public int
modifiers()

Implements com.sun.jdi.Accessible.modifiers.

Returns the Java programming language modifiers, encoded in an integer.

public String
name()

Implements com.sun.jdi.TypeComponent.name.

Gets the name of this type component.

pack-priv long
ref()

public String
signature()

Implements com.sun.jdi.TypeComponent.signature.

Gets the type signature for this type component.

Inherited from com.sun.tools.jdi.MirrorImpl:
equalshashCodevalidateMirrorvalidateMirrorOrNullvalidateMirrorsvalidateMirrorsOrNullsvirtualMachine

Field Detail

declaringTypeback to summary
protected final ReferenceTypeImpl declaringType
genericSignatureback to summary
protected final String genericSignature
modifiersback to summary
private final int modifiers
nameback to summary
protected final String name
refback to summary
protected final long ref
signatureback to summary
protected final String signature

Constructor Detail

TypeComponentImplback to summary
pack-priv TypeComponentImpl(VirtualMachine vm, ReferenceTypeImpl declaringType, long ref, String name, String signature, String genericSignature, int modifiers)

Method Detail

declaringTypeback to summary
public ReferenceType declaringType()

Implements com.sun.jdi.TypeComponent.declaringType.

Doc from com.sun.jdi.TypeComponent.declaringType.

Returns the type in which this component was declared. The returned ReferenceType mirrors either a class or an interface in the target VM.

genericSignatureback to summary
public String genericSignature()

Implements com.sun.jdi.TypeComponent.genericSignature.

Doc from com.sun.jdi.TypeComponent.genericSignature.

Gets the generic signature for this TypeComponent if there is one. Generic signatures are described in the The Java Virtual Machine Specification.

isFinalback to summary
public boolean isFinal()

Implements com.sun.jdi.TypeComponent.isFinal.

Doc from com.sun.jdi.TypeComponent.isFinal.

Determines if this TypeComponent is final. Return value is undefined for constructors and static initializers.

isModifierSetback to summary
pack-priv boolean isModifierSet(int compareBits)
isPackagePrivateback to summary
public boolean isPackagePrivate()

Implements com.sun.jdi.Accessible.isPackagePrivate.

Doc from com.sun.jdi.Accessible.isPackagePrivate.

Determines if this object mirrors a package private item. A package private item is declared with no access specifier. For ArrayType, the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE, the return value is always false.

isPrivateback to summary
public boolean isPrivate()

Implements com.sun.jdi.Accessible.isPrivate.

Doc from com.sun.jdi.Accessible.isPrivate.

Determines if this object mirrors a private item. For ArrayType, the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE, the return value is always false.

isProtectedback to summary
public boolean isProtected()

Implements com.sun.jdi.Accessible.isProtected.

Doc from com.sun.jdi.Accessible.isProtected.

Determines if this object mirrors a protected item. For ArrayType, the return value depends on the array component type. For primitive arrays the return value is always false. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE, the return value is always false.

isPublicback to summary
public boolean isPublic()

Implements com.sun.jdi.Accessible.isPublic.

Doc from com.sun.jdi.Accessible.isPublic.

Determines if this object mirrors a public item. For ArrayType, the return value depends on the array component type. For primitive arrays the return value is always true. For object arrays, the return value is the same as would be returned for the component type. For primitive classes, such as java.lang.Integer#TYPE, the return value is always true.

isStaticback to summary
public boolean isStatic()

Implements com.sun.jdi.TypeComponent.isStatic.

Doc from com.sun.jdi.TypeComponent.isStatic.

Determines if this TypeComponent is static. Return value is undefined for constructors and static initializers.

isSyntheticback to summary
public boolean isSynthetic()

Implements com.sun.jdi.TypeComponent.isSynthetic.

Doc from com.sun.jdi.TypeComponent.isSynthetic.

Determines if this TypeComponent is synthetic. Synthetic members are generated by the compiler and are not present in the source code for the containing class.

Not all target VMs support this query. See VirtualMachine#canGetSyntheticAttribute to determine if the operation is supported.

modifiersback to summary
public int modifiers()

Implements com.sun.jdi.Accessible.modifiers.

Doc from com.sun.jdi.Accessible.modifiers.

Returns the Java programming language modifiers, encoded in an integer.

The modifier encodings are defined in The Java Virtual Machine Specification in the access_flag tables for classes(section 4.1), fields(section 4.5), and methods(section 4.6).

nameback to summary
public String name()

Implements com.sun.jdi.TypeComponent.name.

Doc from com.sun.jdi.TypeComponent.name.

Gets the name of this type component.

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>.

refback to summary
pack-priv long ref()
signatureback to summary
public String signature()

Implements com.sun.jdi.TypeComponent.signature.

Doc from com.sun.jdi.TypeComponent.signature.

Gets the type signature for this type component. The signature is encoded type information as defined in the JNI documentation. It is a convenient, compact format for for manipulating type information internally, not necessarily for display to an end user. See Field#typeName and Method#returnTypeName for ways to help get a more readable representation of the type.