void function ( QName arg0 , ItemType arg1 , OccurrenceIndicator arg2 ) { XPathVariable loc0 = env . declareVariable ( arg0 . getNamespaceURI ( ) , arg0 . getLocalName ( ) ) ; loc0 . setRequiredType ( SequenceType . makeSequenceType ( arg1 . getUnderlyingItemType ( ) , arg2 . getCardinality ( ) ) ) ; }
declare a variable as part of the static context for xpath expressions compiled using this xpathcompiler . it is an error for the xpath expression to refer to a variable unless it has been declared . this method declares the existence of the variable , and defines the required type of the variable , but it does not bind any value to the variable ; that is done later , when the xpath expression is evaluated . concode_field_sep IndependentContext env concode_elem_sep Processor processor concode_field_sep void setAllowUndeclaredVariables concode_elem_sep XPathExecutable compilePattern concode_elem_sep void setBaseURI concode_elem_sep boolean isAllowUndeclaredVariables concode_elem_sep XPathExecutable compile concode_elem_sep void setBackwardsCompatible concode_elem_sep void importSchemaNamespace concode_elem_sep StaticContext getUnderlyingStaticContext concode_elem_sep boolean isBackwardsCompatible concode_elem_sep URI getBaseURI concode_elem_sep void declareNamespace