public StructuredQName getObjectName() { return sourceBinding.getVariableQName(); }
public StructuredQName getObjectName() { return sourceBinding.getVariableQName(); }
public StructuredQName getVariableQName() { return sourceBinding.getVariableQName(); }
public StructuredQName getVariableQName() { return sourceBinding.getVariableQName(); }
public StructuredQName getVariableQName() { return sourceBinding.getVariableQName(); }
public StructuredQName getVariableQName() { return sourceBinding.getVariableQName(); }
public StructuredQName getObjectName() { return sourceBinding.getVariableQName(); }
public StructuredQName getObjectName() { return sourceBinding.getVariableQName(); }
/** * Ask whether this element contains a binding for a variable with a given name; and if it does, * return the source binding information * * @param name the variable name * @return the binding information if this element binds a variable of this name; otherwise null */ public SourceBinding getBindingInformation(StructuredQName name) { if (name.equals(sourceBinding.getVariableQName())) { return sourceBinding; } else { return null; } }
/** * Ask whether this element contains a binding for a variable with a given name; and if it does, * return the source binding information * * @param name the variable name * @return the binding information if this element binds a variable of this name; otherwise null */ public SourceBinding getBindingInformation(StructuredQName name) { if (name.equals(sourceBinding.getVariableQName())) { return sourceBinding; } else { return null; } }
/** * Ask whether this element contains a binding for a variable with a given name; and if it does, * return the source binding information * * @param name the variable name * @return the binding information if this element binds a variable of this name; otherwise null */ public SourceBinding getBindingInformation(StructuredQName name) { if (name.equals(sourceBinding.getVariableQName())) { return sourceBinding; } else { return null; } }
/** * Ask whether this element contains a binding for a variable with a given name; and if it does, * return the source binding information * * @param name the variable name * @return the binding information if this element binds a variable of this name; otherwise null */ public SourceBinding getBindingInformation(StructuredQName name) { if (name.equals(sourceBinding.getVariableQName())) { return sourceBinding; } else { return null; } }
/** * Ask whether this element contains a binding for a variable with a given name; and if it does, * return the source binding information * * @param name the variable name * @return the binding information if this element binds a variable of this name; otherwise null */ public SourceBinding getBindingInformation(StructuredQName name) { if (name.equals(sourceBinding.getVariableQName())) { return sourceBinding; } else { return null; } }
/** * Ask whether this element contains a binding for a variable with a given name; and if it does, * return the source binding information * * @param name the variable name * @return the binding information if this element binds a variable of this name; otherwise null */ public SourceBinding getBindingInformation(StructuredQName name) { if (name.equals(sourceBinding.getVariableQName())) { return sourceBinding; } else { return null; } }
public void validate(ComponentDeclaration decl) throws XPathException { super.validate(decl); // Check for duplicate parameter names AxisIterator iter = iterateAxis(AxisInfo.PRECEDING_SIBLING); Item prev; while ((prev = iter.next()) != null) { if (prev instanceof XSLWithParam) { if (sourceBinding.getVariableQName().equals(((XSLWithParam) prev).sourceBinding.getVariableQName())) { compileError("Duplicate parameter name", "XTSE0670"); } } } }
public void validate(ComponentDeclaration decl) throws XPathException { super.validate(decl); // Check for duplicate parameter names AxisIterator iter = iterateAxis(AxisInfo.PRECEDING_SIBLING); Item prev; while ((prev = iter.next()) != null) { if (prev instanceof XSLWithParam) { if (sourceBinding.getVariableQName().equals(((XSLWithParam) prev).sourceBinding.getVariableQName())) { compileError("Duplicate parameter name", "XTSE0670"); } } } }
public WithParam compileWithParam(Expression parent, Compilation exec, ComponentDeclaration decl) throws XPathException { sourceBinding.handleSequenceConstructor(exec, decl); WithParam inst = new WithParam(); inst.setSelectExpression(parent, sourceBinding.getSelectExpression()); inst.setVariableQName(sourceBinding.getVariableQName()); inst.setRequiredType(sourceBinding.getInferredType(true)); return inst; }
public WithParam compileWithParam(Expression parent, Compilation exec, ComponentDeclaration decl) throws XPathException { sourceBinding.handleSequenceConstructor(exec, decl); WithParam inst = new WithParam(); inst.setSelectExpression(parent, sourceBinding.getSelectExpression()); inst.setVariableQName(sourceBinding.getVariableQName()); inst.setRequiredType(sourceBinding.getInferredType(true)); return inst; }
/** * Get the corresponding Procedure object that results from the compilation of this * StylesheetProcedure */ public Actor getActor() throws XPathException { GlobalVariable gv = getCompiledVariable(); if (gv == null) { gv = this instanceof XSLGlobalParam ? new GlobalParam() : new GlobalVariable(); gv.setPackageData(getCompilation().getPackageData()); gv.makeDeclaringComponent(getVisibility(), getContainingPackage()); gv.setRequiredType(sourceBinding.getDeclaredType()); gv.setDeclaredVisibility(getDeclaredVisibility()); gv.setVariableQName(sourceBinding.getVariableQName()); gv.setSystemId(getSystemId()); gv.setLineNumber(getLineNumber()); RetainedStaticContext rsc = makeRetainedStaticContext(); gv.setRetainedStaticContext(rsc); if (gv.getBody() != null) { gv.getBody().setRetainedStaticContext(rsc); } compiledVariable = gv; } return gv; }
/** * Get the corresponding Procedure object that results from the compilation of this * StylesheetProcedure */ public Actor getActor() throws XPathException { GlobalVariable gv = getCompiledVariable(); if (gv == null) { gv = this instanceof XSLGlobalParam ? new GlobalParam() : new GlobalVariable(); gv.setPackageData(getCompilation().getPackageData()); gv.makeDeclaringComponent(getVisibility(), getContainingPackage()); gv.setRequiredType(sourceBinding.getDeclaredType()); gv.setDeclaredVisibility(getDeclaredVisibility()); gv.setVariableQName(sourceBinding.getVariableQName()); gv.setSystemId(getSystemId()); gv.setLineNumber(getLineNumber()); RetainedStaticContext rsc = makeRetainedStaticContext(); gv.setRetainedStaticContext(rsc); if (gv.getBody() != null) { gv.getBody().setRetainedStaticContext(rsc); } compiledVariable = gv; } return gv; }