/** * Process this local variable declaration by expanding any sequence constructor and setting * the select expression to the result * * @param exec the executable * @param decl the declaration being compiled * @throws XPathException if an error occurs */ public void compileLocalVariable(Compilation exec, ComponentDeclaration decl) throws XPathException { //if (!sourceBinding.getReferences().isEmpty()) { sourceBinding.handleSequenceConstructor(exec, decl); //} }
/** * Process this local variable declaration by expanding any sequence constructor and setting * the select expression to the result * * @param exec the executable * @param decl the declaration being compiled * @throws XPathException if an error occurs */ public void compileLocalVariable(Compilation exec, ComponentDeclaration decl) throws XPathException { //if (!sourceBinding.getReferences().isEmpty()) { sourceBinding.handleSequenceConstructor(exec, decl); //} }
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; }
/** * Compile a global xsl:param element: this ensures space is available for local variables declared within * this global variable */ public void compileDeclaration(Compilation compilation, ComponentDeclaration decl) throws XPathException { if (sourceBinding.isStatic()) { super.compileDeclaration(compilation, decl); } else if (!redundant) { sourceBinding.handleSequenceConstructor(compilation, decl); GlobalParam binding = (GlobalParam)compiledVariable; binding.setPackageData(getCompilation().getPackageData()); binding.makeDeclaringComponent(Visibility.PUBLIC, getContainingPackage()); Expression select = sourceBinding.getSelectExpression(); binding.setSelectExpression(select); binding.setVariableQName(sourceBinding.getVariableQName()); initializeBinding(binding); binding.setRequiredType(getRequiredType()); binding.setRequiredParam(sourceBinding.hasProperty(SourceBinding.REQUIRED)); binding.setImplicitlyRequiredParam(sourceBinding.hasProperty(SourceBinding.IMPLICITLY_REQUIRED)); sourceBinding.fixupBinding(binding); //compiledVariable = binding; Component overridden = getOverriddenComponent(); if (overridden != null) { checkCompatibility(overridden); } } }
/** * Compile a global xsl:param element: this ensures space is available for local variables declared within * this global variable */ public void compileDeclaration(Compilation compilation, ComponentDeclaration decl) throws XPathException { if (sourceBinding.isStatic()) { super.compileDeclaration(compilation, decl); } else if (!redundant) { sourceBinding.handleSequenceConstructor(compilation, decl); GlobalParam binding = (GlobalParam)compiledVariable; binding.setPackageData(getCompilation().getPackageData()); binding.makeDeclaringComponent(Visibility.PUBLIC, getContainingPackage()); Expression select = sourceBinding.getSelectExpression(); binding.setSelectExpression(select); binding.setVariableQName(sourceBinding.getVariableQName()); initializeBinding(binding); binding.setRequiredType(getRequiredType()); binding.setRequiredParam(sourceBinding.hasProperty(SourceBinding.REQUIRED)); binding.setImplicitlyRequiredParam(sourceBinding.hasProperty(SourceBinding.IMPLICITLY_REQUIRED)); sourceBinding.fixupBinding(binding); //compiledVariable = binding; Component overridden = getOverriddenComponent(); if (overridden != null) { checkCompatibility(overridden); } } }
sourceBinding.handleSequenceConstructor(compilation, decl); GlobalVariable inst = getCompiledVariable(); if (inst == null) {
sourceBinding.handleSequenceConstructor(compilation, decl); GlobalVariable inst = getCompiledVariable(); if (inst == null) {
sourceBinding.handleSequenceConstructor(exec, decl);
sourceBinding.handleSequenceConstructor(exec, decl);