diff options
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeComponentImpl.java')
-rw-r--r-- | org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeComponentImpl.java | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeComponentImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeComponentImpl.java index 6fc3827c9..d59cd7e8f 100644 --- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeComponentImpl.java +++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeComponentImpl.java @@ -10,17 +10,16 @@ *******************************************************************************/ package org.eclipse.jdi.internal; - import com.sun.jdi.ReferenceType; import com.sun.jdi.TypeComponent; /** - * this class implements the corresponding interfaces - * declared by the JDI specification. See the com.sun.jdi package - * for more information. - * + * this class implements the corresponding interfaces declared by the JDI + * specification. See the com.sun.jdi package for more information. + * */ -public abstract class TypeComponentImpl extends AccessibleImpl implements TypeComponent { +public abstract class TypeComponentImpl extends AccessibleImpl implements + TypeComponent { /** Text representation of this type. */ private String fName = null; /** JNI-style signature for this type. */ @@ -35,12 +34,14 @@ public abstract class TypeComponentImpl extends AccessibleImpl implements TypeCo /** * Creates new instance. */ - public TypeComponentImpl(String description, VirtualMachineImpl vmImpl, ReferenceTypeImpl declaringType, String name, String signature, String genericSignature, int modifierBits) { + public TypeComponentImpl(String description, VirtualMachineImpl vmImpl, + ReferenceTypeImpl declaringType, String name, String signature, + String genericSignature, int modifierBits) { super(description, vmImpl); fName = name; fSignature = signature; - fGenericSignature= genericSignature; - fDeclaringType= declaringType; + fGenericSignature = genericSignature; + fDeclaringType = declaringType; fModifierBits = modifierBits; } @@ -50,42 +51,43 @@ public abstract class TypeComponentImpl extends AccessibleImpl implements TypeCo public int modifiers() { return fModifierBits; } - + /** - * @return Returns the ReferenceTypeImpl in which this component was declared. + * @return Returns the ReferenceTypeImpl in which this component was + * declared. */ - public ReferenceTypeImpl referenceTypeImpl() { - return fDeclaringType; - } - + public ReferenceTypeImpl referenceTypeImpl() { + return fDeclaringType; + } + /** * @return Returns the type in which this component was declared. */ public ReferenceType declaringType() { - return fDeclaringType; + return fDeclaringType; } - - /** + + /** * @return Returns true if type component is final. */ public boolean isFinal() { return (fModifierBits & MODIFIER_ACC_FINAL) != 0; } - - /** + + /** * @return Returns true if type component is static. */ public boolean isStatic() { return (fModifierBits & MODIFIER_ACC_STATIC) != 0; } - - /** + + /** * @return Returns true if type component is synthetic. */ public boolean isSynthetic() { return (fModifierBits & (MODIFIER_SYNTHETIC | MODIFIER_ACC_SYNTHETIC)) != 0; } - + /** * @return Returns text representation of this type. */ @@ -99,16 +101,17 @@ public abstract class TypeComponentImpl extends AccessibleImpl implements TypeCo public String signature() { return fSignature; } - + /** * @return Returns description of Mirror object. */ + @Override public String toString() { return fName; } - + public String genericSignature() { return fGenericSignature; } - + } |