1 11 package org.eclipse.jdt.internal.compiler.lookup; 12 13 import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; 14 import org.eclipse.jdt.internal.compiler.impl.Constant; 15 16 22 public class ParameterizedFieldBinding extends FieldBinding { 23 24 public FieldBinding originalField; 25 26 public ParameterizedFieldBinding(ParameterizedTypeBinding parameterizedDeclaringClass, FieldBinding originalField) { 27 super ( 28 originalField.name, 29 (originalField.modifiers & ClassFileConstants.AccEnum) != 0 30 ? parameterizedDeclaringClass : (originalField.modifiers & ClassFileConstants.AccStatic) != 0 32 ? originalField.type : Scope.substitute(parameterizedDeclaringClass, originalField.type), 34 originalField.modifiers, 35 parameterizedDeclaringClass, 36 null); 37 this.originalField = originalField; 38 this.tagBits = originalField.tagBits; 39 this.id = originalField.id; 40 } 41 42 45 public Constant constant() { 46 return this.originalField.constant(); 47 } 48 49 52 public FieldBinding original() { 53 return this.originalField.original(); 54 } 55 56 59 public void setConstant(Constant constant) { 60 this.originalField.setConstant(constant); 61 } 62 } 63 | Popular Tags |