/** * Create a Variable Reference * * @param binding the variable binding to which this variable refers */ public VariableReference(Binding binding) { //System.err.println("Creating varRef1"); variableName = binding.getVariableQName(); fixup(binding); }
/** * Create a Variable Reference * * @param binding the variable binding to which this variable refers */ public VariableReference(Binding binding) { //System.err.println("Creating varRef1"); variableName = binding.getVariableQName(); fixup(binding); }
/** * Create a Variable Reference * @param binding the variable binding to which this variable refers */ public VariableReference(Binding binding) { //System.err.println("Creating varRef1"); displayName = binding.getVariableQName().getDisplayName(); fixup(binding); }
/** * Create a Variable Reference * @param binding the variable binding to which this variable refers */ public VariableReference(Binding binding) { displayName = binding.getVariableQName().getDisplayName(); fixup(binding); }
/** * Create a Variable Reference * @param binding the variable binding to which this variable refers */ public VariableReference(Binding binding) { displayName = binding.getVariableQName().getDisplayName(); fixup(binding); }
/** * Rebind all variable references to a binding * @param exp the expression whose contained variable references are to be rebound * @param oldBinding the old binding for the variable references * @param newBinding the new binding to which the variables should be rebound */ public static void rebindVariableReferences( Expression exp, Binding oldBinding, Binding newBinding) { if (exp instanceof VariableReference) { if (((VariableReference)exp).getBinding() == oldBinding) { ((VariableReference)exp).fixup(newBinding); } } else { Iterator iter = exp.iterateSubExpressions(); while (iter.hasNext()) { Expression e = (Expression)iter.next(); rebindVariableReferences(e, oldBinding, newBinding); } } }
/** * Rebind all variable references to a binding * @param exp the expression whose contained variable references are to be rebound * @param oldBinding the old binding for the variable references * @param newBinding the new binding to which the variables should be rebound */ public static void rebindVariableReferences( Expression exp, Binding oldBinding, Binding newBinding) { if (exp instanceof VariableReference) { if (((VariableReference)exp).getBinding() == oldBinding) { ((VariableReference)exp).fixup(newBinding); } } else { Iterator iter = exp.iterateSubExpressions(); while (iter.hasNext()) { Expression e = (Expression)iter.next(); rebindVariableReferences(e, oldBinding, newBinding); } } } }
/** * Rebind all variable references to a binding * * @param exp the expression whose contained variable references are to be rebound * @param oldBinding the old binding for the variable references * @param newBinding the new binding to which the variables should be rebound */ public static void rebindVariableReferences( Expression exp, Binding oldBinding, Binding newBinding) { if (exp instanceof VariableReference) { if (((VariableReference) exp).getBinding() == oldBinding) { ((VariableReference) exp).fixup(newBinding); } } else { for (Operand o : exp.operands()) { rebindVariableReferences(o.getChildExpression(), oldBinding, newBinding); } } }
/** * Rebind all variable references to a binding * * @param exp the expression whose contained variable references are to be rebound * @param oldBinding the old binding for the variable references * @param newBinding the new binding to which the variables should be rebound */ public static void rebindVariableReferences( Expression exp, Binding oldBinding, Binding newBinding) { if (exp instanceof VariableReference) { if (((VariableReference) exp).getBinding() == oldBinding) { ((VariableReference) exp).fixup(newBinding); } } else { for (Operand o : exp.operands()) { rebindVariableReferences(o.getChildExpression(), oldBinding, newBinding); } } }
var.fixup(compiledVar); var.setStaticType(compiledVar.getRequiredType(), sourceBinding.getConstantValue(), 0); } else {
var.fixup(compiledVar); var.setStaticType(compiledVar.getRequiredType(), sourceBinding.getConstantValue(), 0); } else {