1 11 package org.eclipse.jdt.internal.compiler.lookup; 12 13 23 24 import org.eclipse.jdt.core.compiler.CharOperation; 25 import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; 26 27 public class SyntheticArgumentBinding extends LocalVariableBinding { 28 29 { 30 this.tagBits |= TagBits.IsArgument; 31 this.useFlag = USED; 32 } 33 34 public LocalVariableBinding actualOuterLocalVariable; 36 public FieldBinding matchingField; 38 39 public SyntheticArgumentBinding(LocalVariableBinding actualOuterLocalVariable) { 40 41 super( 42 CharOperation.concat(TypeConstants.SYNTHETIC_OUTER_LOCAL_PREFIX, actualOuterLocalVariable.name), 43 actualOuterLocalVariable.type, 44 ClassFileConstants.AccFinal, 45 true); 46 this.actualOuterLocalVariable = actualOuterLocalVariable; 47 } 48 49 public SyntheticArgumentBinding(ReferenceBinding enclosingType) { 50 51 super( 52 CharOperation.concat( 53 TypeConstants.SYNTHETIC_ENCLOSING_INSTANCE_PREFIX, 54 String.valueOf(enclosingType.depth()).toCharArray()), 55 enclosingType, 56 ClassFileConstants.AccFinal, 57 true); 58 } 59 } 60 | Popular Tags |