1 19 20 package org.netbeans.modules.debugger.jpda.expr; 21 22 import com.sun.jdi.ReferenceType; 23 import com.sun.jdi.ObjectReference; 24 25 31 class Identifier { 32 33 ReferenceType typeContext; 34 ObjectReference instanceContext; 35 String superQualifier; 36 String identifier; 37 boolean localContext; 38 39 Identifier(boolean localContext, ObjectReference instanceContext, String identifier) { 40 this.localContext = localContext; 41 this.instanceContext = instanceContext; 42 if (instanceContext != null) { 43 this.typeContext = instanceContext.referenceType(); 44 } 45 this.identifier = identifier; 46 } 47 48 Identifier(boolean localContext, ObjectReference objectReference, ReferenceType typeContext, String identifier) { 49 this.localContext = localContext; 50 this.instanceContext = objectReference; 51 this.typeContext = typeContext; 52 this.identifier = identifier; 53 } 54 55 Identifier(boolean localContext, ReferenceType typeContext, String identifier) { 56 this.localContext = localContext; 57 this.typeContext = typeContext; 58 this.identifier = identifier; 59 } 60 61 Identifier(ObjectReference objectReference, String identifier, String superQualifier) { 62 this.instanceContext = objectReference; 63 this.typeContext = instanceContext.referenceType(); 64 this.identifier = identifier; 65 this.superQualifier = superQualifier; 66 } 67 68 Identifier(ReferenceType typeContext, String identifier) { 69 this.typeContext = typeContext; 70 this.identifier = identifier; 71 } 72 } 73 | Popular Tags |