/** * Check that all external variables have been given a value * @param stackFrameMap describes the stack frame * @param numberOfExternals the number of variables that need to be supplied * @throws XPathException if required variables have not been given a value */ protected void checkExternalVariables(SlotManager stackFrameMap, int numberOfExternals) throws XPathException { ValueRepresentation[] stack = contextObject.getStackFrame().getStackFrameValues(); for (int i=0; i<numberOfExternals; i++) { if (stack[i] == null) { StructuredQName qname = (StructuredQName)stackFrameMap.getVariableMap().get(i); throw new XPathException("No value has been supplied for variable $" + qname.getDisplayName()); } } } }
/** * Check that all external variables have been given a value * * @param stackFrameMap describes the stack frame * @param numberOfExternals the number of variables that need to be supplied * @throws XPathException if required variables have not been given a value */ protected void checkExternalVariables(/*@NotNull*/ SlotManager stackFrameMap, int numberOfExternals) throws XPathException { Sequence[] stack = contextObject.getStackFrame().getStackFrameValues(); for (int i = 0; i < numberOfExternals; i++) { if (stack[i] == null) { StructuredQName qname = stackFrameMap.getVariableMap().get(i); throw new XPathException("No value has been supplied for variable $" + qname.getDisplayName()); } } } }
/** * Check that all external variables have been given a value * @param stackFrameMap describes the stack frame * @param numberOfExternals the number of variables that need to be supplied * @throws XPathException if required variables have not been given a value */ protected void checkExternalVariables(SlotManager stackFrameMap, int numberOfExternals) throws XPathException { ValueRepresentation[] stack = contextObject.getStackFrame().getStackFrameValues(); for (int i=0; i<numberOfExternals; i++) { if (stack[i] == null) { StructuredQName qname = (StructuredQName)stackFrameMap.getVariableMap().get(i); throw new XPathException("No value has been supplied for variable $" + qname.getDisplayName()); } } } }
/** * Check that all external variables have been given a value * * @param stackFrameMap describes the stack frame * @param numberOfExternals the number of variables that need to be supplied * @throws XPathException if required variables have not been given a value */ protected void checkExternalVariables(/*@NotNull*/ SlotManager stackFrameMap, int numberOfExternals) throws XPathException { Sequence[] stack = contextObject.getStackFrame().getStackFrameValues(); for (int i = 0; i < numberOfExternals; i++) { if (stack[i] == null) { StructuredQName qname = stackFrameMap.getVariableMap().get(i); throw new XPathException("No value has been supplied for variable $" + qname.getDisplayName()); } } } }