1 11 package org.eclipse.jdi.internal; 12 13 14 import com.sun.jdi.ReferenceType; 15 import com.sun.jdi.TypeComponent; 16 17 23 public abstract class TypeComponentImpl extends AccessibleImpl implements TypeComponent { 24 25 private String fName = null; 26 27 private String fSignature = null; 28 29 private String fGenericSignature; 30 31 private ReferenceTypeImpl fDeclaringType; 32 33 protected int fModifierBits; 34 35 38 public TypeComponentImpl(String description, VirtualMachineImpl vmImpl, ReferenceTypeImpl declaringType, String name, String signature, String genericSignature, int modifierBits) { 39 super(description, vmImpl); 40 fName = name; 41 fSignature = signature; 42 fGenericSignature= genericSignature; 43 fDeclaringType= declaringType; 44 fModifierBits = modifierBits; 45 } 46 47 50 public int modifiers() { 51 return fModifierBits; 52 } 53 54 57 public ReferenceTypeImpl referenceTypeImpl() { 58 return fDeclaringType; 59 } 60 61 64 public ReferenceType declaringType() { 65 return fDeclaringType; 66 } 67 68 71 public boolean isFinal() { 72 return (fModifierBits & MODIFIER_ACC_FINAL) != 0; 73 } 74 75 78 public boolean isStatic() { 79 return (fModifierBits & MODIFIER_ACC_STATIC) != 0; 80 } 81 82 85 public boolean isSynthetic() { 86 return (fModifierBits & (MODIFIER_SYNTHETIC | MODIFIER_ACC_SYNTHETIC)) != 0; 87 } 88 89 92 public String name() { 93 return fName; 94 } 95 96 99 public String signature() { 100 return fSignature; 101 } 102 103 106 public String toString() { 107 return fName; 108 } 109 110 public String genericSignature() { 111 return fGenericSignature; 112 } 113 114 } 115 | Popular Tags |