1 11 package org.eclipse.jdt.internal.compiler.ast; 12 13 import org.eclipse.jdt.internal.compiler.lookup.*; 14 15 public abstract class NameReference extends Reference implements InvocationSite { 16 17 public Binding binding, codegenBinding; 19 public TypeBinding actualReceiverType; 21 public NameReference() { 29 super(); 30 bits |= Binding.TYPE | Binding.VARIABLE; 32 } 33 public FieldBinding fieldBinding() { 34 37 return (FieldBinding) binding ; 38 } 39 public boolean isSuperAccess() { 40 return false; 41 } 42 public boolean isTypeAccess() { 43 return binding == null || binding instanceof ReferenceBinding; 45 } 46 public boolean isTypeReference() { 47 return binding instanceof ReferenceBinding; 48 } 49 public void setActualReceiverType(ReferenceBinding receiverType) { 50 if (receiverType == null) return; this.actualReceiverType = receiverType; 52 } 53 public void setDepth(int depth) { 54 bits &= ~DepthMASK; if (depth > 0) { 56 bits |= (depth & 0xFF) << DepthSHIFT; } 58 } 59 public void setFieldIndex(int index){ 60 } 62 63 public abstract String unboundReferenceErrorName(); 64 } 65 | Popular Tags |