1 11 package org.eclipse.jdt.internal.eval; 12 13 import org.eclipse.jdt.internal.compiler.ast.SuperReference; 14 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 15 import org.eclipse.jdt.internal.compiler.lookup.InvocationSite; 16 import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding; 17 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; 18 19 25 public class CodeSnippetSuperReference extends SuperReference implements EvaluationConstants, InvocationSite { 26 27 public CodeSnippetSuperReference(int pos, int sourceEnd) { 28 super(pos, sourceEnd); 29 } 30 31 34 public TypeBinding[] genericTypeArguments() { 35 return null; 36 } 37 38 public TypeBinding resolveType(BlockScope scope) { 39 scope.problemReporter().cannotUseSuperInCodeSnippet(this.sourceStart, this.sourceEnd); 40 return null; 41 } 42 public boolean isSuperAccess(){ 43 return false; 44 } 45 public boolean isTypeAccess(){ 46 return false; 47 } 48 public void setActualReceiverType(ReferenceBinding receiverType) { 49 } 51 public void setDepth(int depth){ 52 } 54 public void setFieldIndex(int index){ 55 } 57 58 } 59 60 | Popular Tags |