Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.compiler

public Class Compiler

extends OpMap
Class Inheritance
Imports
javax.xml.transform.ErrorListener, .SourceLocator, .TransformerException, com.sun.org.apache.xalan.internal.res.XSLMessages, com.sun.org.apache.xml.internal.dtm.Axis, .DTMFilter, .DTMIterator, com.sun.org.apache.xml.internal.utils.PrefixResolver, .QName, .SAXSourceLocator, com.sun.org.apache.xpath.internal.Expression, com.sun.org.apache.xpath.internal.axes.UnionPathIterator, .WalkerFactory, com.sun.org.apache.xpath.internal.functions.FuncExtFunction, .FuncExtFunctionAvailable, .Function, .WrongNumberArgsException, com.sun.org.apache.xpath.internal.objects.XNumber, .XString, com.sun.org.apache.xpath.internal.operations.And, .Div, .Equals, .Gt, .Gte, .Lt, .Lte, .Minus, .Mod, .Mult, .Neg, .NotEquals, .Operation, .Or, .Plus, .UnaryOperation, .Variable, com.sun.org.apache.xpath.internal.patterns.FunctionPattern, .NodeTest, .StepPattern, .UnionPattern, com.sun.org.apache.xpath.internal.res.XPATHErrorResources

An instance of this class compiles an XPath string expression into a Expression object. This class compiles the string into a sequence of operation codes (op map) and then builds from that into an Expression tree.

Field Summary

Modifier and TypeField and Description
pack-priv int
private static final boolean
private int
private PrefixResolver
m_currentPrefixResolver

The current prefixResolver for the execution context.

pack-priv ErrorListener
m_errorHandler

The error listener where errors will be sent.

private FunctionTable
m_functionTable

The FunctionTable for all xpath build-in functions

pack-priv SourceLocator
m_locator

The source locator for the expression being compiled.

private static long
Inherited from com.sun.org.apache.xpath.internal.compiler.OpMap:
BLOCKTOKENQUEUESIZEm_currentPatternm_opMapm_tokenQueueMAPINDEX_LENGTHMAXTOKENQUEUESIZE

Constructor Summary

AccessConstructor and Description
public
Compiler(ErrorListener
Error listener where messages will be sent, or null if messages should be sent to System err.
errorHandler
,
SourceLocator
The location object where the expression lives, which may be null, but which, if not null, must be valid over the long haul, in other words, it will not be cloned.
locator
,
FunctionTable
The FunctionTable object where the xpath build-in functions are stored.
fTable
)

Construct a Compiler object with a specific ErrorListener and SourceLocator where the expression is located.

public
Compiler()

Construct a Compiler instance that has a null error listener and a null source locator.

Method Summary

Modifier and TypeMethod and Description
protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.And instance.
and
(int
The current position in the m_opMap array.
opPos
)

Compile an 'and' operation.

protected Expression

Returns:

reference to the argument expression.
arg
(int
The current position in the m_opMap array.
opPos
)

Compile a function argument.

public void
assertion(boolean
If false, a runtime exception will be thrown.
b
,
String
The assertion message, which should be informative.
msg
)

Tell the user of an assertion error, and probably throw an exception.

protected Expression
bool(int
The current position in the m_opMap array.
opPos
)

Compile a 'boolean(...)' operation.

private Expression

Returns:

The result of the XPath.
compile
(int
The current position in the xpath.m_opMap array.
opPos
)

This method handles the actual compilation process.

public Expression

Returns:

The result of the XPath.
compileExpression
(int
The current position in the xpath.m_opMap array.
opPos
)

Execute the XPath object from a given opcode position.

private Expression
compileExtension(int
The current position in the m_opMap array.
opPos
)

Compile an extension function.

pack-priv Expression
compileFunction(int
The current position in the m_opMap array.
opPos
)

Compile a built-in XPath function.

private Expression
compileOperation(Operation
non-null reference to parent operation.
operation
,
int
The op map position of the parent operation.
opPos
)

Bottle-neck compilation of an operation with left and right operands.

private void
compilePredicates(int
The position of the first predicate the m_opMap array.
opPos
,
Expression[]
An empty pre-determined array of com.sun.org.apache.xpath.internal.Expressions, that will be filled in.
predicates
)

Compiles predicates in the step.

private Expression

Returns:

The unary argument.
compileUnary
(UnaryOperation
The parent unary operation.
unary
,
int
The position in the op map of the parent operation.
opPos
)

Bottle-neck compilation of a unary operation.

public int

Returns:

The number of predicates for this step.
countPredicates
(int
The position of the first predicate the m_opMap array.
opPos
)

Count the number of predicates in the step.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Div instance.
div
(int
The current position in the m_opMap array.
opPos
)

Compile a 'div' operation.

protected Expression
equals(int
The current position in the m_opMap array.
opPos
)

Compile a '=' operation.

public void
error(String
An error msgkey that corresponds to one of the constants found in com.sun.org.apache.xpath.internal.res.XPATHErrorResources, which is a key for a format string.
msg
,
Object[]
An array of arguments represented in the format string, which may be null.
args
)

Overrides com.sun.org.apache.xpath.internal.compiler.OpMap.error.

Tell the user of an error, and probably throw an exception.

public Expression[]

Returns:

reference to array of com.sun.org.apache.xpath.internal.Expression instances.
getCompiledPredicates
(int
The position of the first predicate the m_opMap array.
opPos
)

Compile a zero or more predicates for a given match pattern.

pack-priv FunctionTable
getFunctionTable()

Get the function table

public int

Returns:

0 if it is a top-level path.
getLocationPathDepth
()

Get the level of the location path or union being constructed.

public PrefixResolver

Returns:

The current prefix resolver, *may* be null, though hopefully not.
getNamespaceContext
()

Get the current namespace context for the xpath.

private synchronized long
getNextMethodId()

Get the next available method id

public int

Returns:

org.w3c.dom.traversal.NodeFilter bit set that tells what to show for a given node test.
getWhatToShow
(int
the op map position for the location step.
opPos
)

Get a org.w3c.dom.traversal.NodeFilter bit set that tells what to show for a given node test.

protected Expression

Returns:

reference to the contained expression.
group
(int
The current position in the m_opMap array.
opPos
)

Compile an expression group.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Gt instance.
gt
(int
The current position in the m_opMap array.
opPos
)

Compile a '>' operation.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Gte instance.
gte
(int
The current position in the m_opMap array.
opPos
)

Compile a '>=' operation.

protected Expression
literal(int
The current position in the m_opMap array.
opPos
)

Compile a literal string value.

public Expression
locationPath(int
The current position in the m_opMap array.
opPos
)

Compile a location path.

public Expression
locationPathPattern(int
The current position in the m_opMap array.
opPos
)

Compile a location match pattern unit expression.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Lt instance.
lt
(int
The current position in the m_opMap array.
opPos
)

Compile a '<' operation.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Lte instance.
lte
(int
The current position in the m_opMap array.
opPos
)

Compile a '<=' operation.

protected Expression
matchPattern(int
The current position in the m_opMap array.
opPos
)

Compile an entire match pattern expression.

protected Expression
minus(int
The current position in the m_opMap array.
opPos
)

Compile a '-' operation.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Mod instance.
mod
(int
The current position in the m_opMap array.
opPos
)

Compile a 'mod' operation.

protected Expression
mult(int
The current position in the m_opMap array.
opPos
)

Compile a '*' operation.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Neg instance.
neg
(int
The current position in the m_opMap array.
opPos
)

Compile a unary '-' operation.

protected Expression
notequals(int
The current position in the m_opMap array.
opPos
)

Compile a '!=' operation.

protected Expression
number(int
The current position in the m_opMap array.
opPos
)

Compile a 'number(...)' operation.

protected Expression
numberlit(int
The current position in the m_opMap array.
opPos
)

Compile a literal number value.

protected Expression

Returns:

reference to com.sun.org.apache.xpath.internal.operations.Or instance.
or
(int
The current position in the m_opMap array.
opPos
)

Compile an 'or' operation.

protected Expression
plus(int
The current position in the m_opMap array.
opPos
)

Compile a '+' operation.

public Expression

Returns:

the contained predicate expression.
predicate
(int
The current position in the m_opMap array.
opPos
)

Compile a location step predicate expression.

public void
setNamespaceContext(PrefixResolver
The resolver for prefixes in the XPath expression.
pr
)

Set the current namespace context for the xpath.

protected StepPattern
stepPattern(int
The current position in the m_opMap array.
opPos
,
int
The number of steps to expect.
stepCount
,
StepPattern
The owning StepPattern, which may be null.
ancestorPattern
)

Compile a step pattern unit expression, used for both location paths and match patterns.

protected Expression
string(int
The current position in the m_opMap array.
opPos
)

Compile a 'string(...)' operation.

protected Expression
union(int
The current position in the m_opMap array.
opPos
)

Compile a location path union.

protected Expression
variable(int
The current position in the m_opMap array.
opPos
)

Compile a variable reference.

public void
warn(String
An error msgkey that corresponds to one of the constants found in com.sun.org.apache.xpath.internal.res.XPATHErrorResources, which is a key for a format string.
msg
,
Object[]
An array of arguments represented in the format string, which may be null.
args
)

Warn the user of an problem.

Inherited from com.sun.org.apache.xpath.internal.compiler.OpMap:
getArgLengthgetArgLengthOfStepgetFirstChildPosgetFirstChildPosOfStepgetFirstPredicateOpPosgetNextOpPosgetNextOpPosgetNextStepPosgetOpgetOpMapgetPatternStringgetStepLocalNamegetStepNSgetStepTestTypegetTokengetTokenQueuegetTokenQueueSizesetOpshrinktoString

Field Detail

countOpback to summary
pack-priv int countOp
DEBUGback to summary
private static final boolean DEBUG
locPathDepthback to summary
private int locPathDepth
m_currentPrefixResolverback to summary
private PrefixResolver m_currentPrefixResolver

The current prefixResolver for the execution context.

m_errorHandlerback to summary
pack-priv ErrorListener m_errorHandler

The error listener where errors will be sent. If this is null, errors and warnings will be sent to System.err. May be null.

m_functionTableback to summary
private FunctionTable m_functionTable

The FunctionTable for all xpath build-in functions

m_locatorback to summary
pack-priv SourceLocator m_locator

The source locator for the expression being compiled. May be null.

s_nextMethodIdback to summary
private static long s_nextMethodId

Constructor Detail

Compilerback to summary
public Compiler(ErrorListener errorHandler, SourceLocator locator, FunctionTable fTable)

Construct a Compiler object with a specific ErrorListener and SourceLocator where the expression is located.

Parameters
errorHandler:ErrorListener

Error listener where messages will be sent, or null if messages should be sent to System err.

locator:SourceLocator

The location object where the expression lives, which may be null, but which, if not null, must be valid over the long haul, in other words, it will not be cloned.

fTable:FunctionTable

The FunctionTable object where the xpath build-in functions are stored.

Compilerback to summary
public Compiler()

Construct a Compiler instance that has a null error listener and a null source locator.

Method Detail

andback to summary
protected Expression and(int opPos) throws TransformerException

Compile an 'and' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.And instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
argback to summary
protected Expression arg(int opPos) throws TransformerException

Compile a function argument.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to the argument expression.

Exceptions
TransformerException:
if a error occurs creating the Expression.
assertionback to summary
public void assertion(boolean b, String msg)

Tell the user of an assertion error, and probably throw an exception.

Parameters
b:boolean

If false, a runtime exception will be thrown.

msg:String

The assertion message, which should be informative.

Exceptions
RuntimeException:
if the b argument is false.
boolback to summary
protected Expression bool(int opPos) throws TransformerException

Compile a 'boolean(...)' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Bool instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
compileback to summary
private Expression compile(int opPos) throws TransformerException

This method handles the actual compilation process. It is called from the compileExpression method as well as the subsequent processes. See the note for compileExpression.

Parameters
opPos:int

The current position in the xpath.m_opMap array.

Returns:Expression

The result of the XPath.

Exceptions
TransformerException:
if there is a syntax or other error.
compileExpressionback to summary
public Expression compileExpression(int opPos) throws TransformerException

Execute the XPath object from a given opcode position. Note that this method is added so that when StackOverflowError is caught the address space can be freed to this point allowing further activities such as reporting the error.

Parameters
opPos:int

The current position in the xpath.m_opMap array.

Returns:Expression

The result of the XPath.

Exceptions
TransformerException:
if there is a syntax or other error.
compileExtensionback to summary
private Expression compileExtension(int opPos) throws TransformerException

Compile an extension function.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.functions.FuncExtFunction instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
compileFunctionback to summary
pack-priv Expression compileFunction(int opPos) throws TransformerException

Compile a built-in XPath function.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.functions.Function instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
compileOperationback to summary
private Expression compileOperation(Operation operation, int opPos) throws TransformerException

Bottle-neck compilation of an operation with left and right operands.

Parameters
operation:Operation

non-null reference to parent operation.

opPos:int

The op map position of the parent operation.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Operation instance.

Exceptions
TransformerException:
if there is a syntax or other error.
compilePredicatesback to summary
private void compilePredicates(int opPos, Expression[] predicates) throws TransformerException

Compiles predicates in the step.

Parameters
opPos:int

The position of the first predicate the m_opMap array.

predicates:Expression[]

An empty pre-determined array of com.sun.org.apache.xpath.internal.Expressions, that will be filled in.

compileUnaryback to summary
private Expression compileUnary(UnaryOperation unary, int opPos) throws TransformerException

Bottle-neck compilation of a unary operation.

Parameters
unary:UnaryOperation

The parent unary operation.

opPos:int

The position in the op map of the parent operation.

Returns:Expression

The unary argument.

Exceptions
TransformerException:
if syntax or other error occurs.
countPredicatesback to summary
public int countPredicates(int opPos) throws TransformerException

Count the number of predicates in the step.

Parameters
opPos:int

The position of the first predicate the m_opMap array.

Returns:int

The number of predicates for this step.

Exceptions
TransformerException:
if a error occurs creating the Expression.
divback to summary
protected Expression div(int opPos) throws TransformerException

Compile a 'div' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Div instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
equalsback to summary
protected Expression equals(int opPos) throws TransformerException

Compile a '=' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Equals instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
errorback to summary
public void error(String msg, Object[] args) throws TransformerException

Overrides com.sun.org.apache.xpath.internal.compiler.OpMap.error.

Tell the user of an error, and probably throw an exception.

Parameters
msg:String

An error msgkey that corresponds to one of the constants found in com.sun.org.apache.xpath.internal.res.XPATHErrorResources, which is a key for a format string.

args:Object[]

An array of arguments represented in the format string, which may be null.

Exceptions
TransformerException:
if the current ErrorListoner determines to throw an exception.
getCompiledPredicatesback to summary
public Expression[] getCompiledPredicates(int opPos) throws TransformerException

Compile a zero or more predicates for a given match pattern.

Parameters
opPos:int

The position of the first predicate the m_opMap array.

Returns:Expression[]

reference to array of com.sun.org.apache.xpath.internal.Expression instances.

Exceptions
TransformerException:
if a error occurs creating the Expression.
getFunctionTableback to summary
pack-priv FunctionTable getFunctionTable()

Get the function table

getLocationPathDepthback to summary
public int getLocationPathDepth()

Get the level of the location path or union being constructed.

Returns:int

0 if it is a top-level path.

getNamespaceContextback to summary
public PrefixResolver getNamespaceContext()

Get the current namespace context for the xpath.

Returns:PrefixResolver

The current prefix resolver, *may* be null, though hopefully not.

getNextMethodIdback to summary
private synchronized long getNextMethodId()

Get the next available method id

getWhatToShowback to summary
public int getWhatToShow(int opPos)

Get a org.w3c.dom.traversal.NodeFilter bit set that tells what to show for a given node test.

Parameters
opPos:int

the op map position for the location step.

Returns:int

org.w3c.dom.traversal.NodeFilter bit set that tells what to show for a given node test.

groupback to summary
protected Expression group(int opPos) throws TransformerException

Compile an expression group.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to the contained expression.

Exceptions
TransformerException:
if a error occurs creating the Expression.
gtback to summary
protected Expression gt(int opPos) throws TransformerException

Compile a '>' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Gt instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
gteback to summary
protected Expression gte(int opPos) throws TransformerException

Compile a '>=' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Gte instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
literalback to summary
protected Expression literal(int opPos)

Compile a literal string value.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.objects.XString instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
locationPathback to summary
public Expression locationPath(int opPos) throws TransformerException

Compile a location path. The LocPathIterator itself may create com.sun.org.apache.xpath.internal.axes.AxesWalker children.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.axes.LocPathIterator instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
locationPathPatternback to summary
public Expression locationPathPattern(int opPos) throws TransformerException

Compile a location match pattern unit expression.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.patterns.StepPattern instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
ltback to summary
protected Expression lt(int opPos) throws TransformerException

Compile a '<' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Lt instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
lteback to summary
protected Expression lte(int opPos) throws TransformerException

Compile a '<=' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Lte instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
matchPatternback to summary
protected Expression matchPattern(int opPos) throws TransformerException

Compile an entire match pattern expression.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.patterns.UnionPattern instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
minusback to summary
protected Expression minus(int opPos) throws TransformerException

Compile a '-' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Minus instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
modback to summary
protected Expression mod(int opPos) throws TransformerException

Compile a 'mod' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Mod instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
multback to summary
protected Expression mult(int opPos) throws TransformerException

Compile a '*' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Mult instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
negback to summary
protected Expression neg(int opPos) throws TransformerException

Compile a unary '-' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Neg instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
notequalsback to summary
protected Expression notequals(int opPos) throws TransformerException

Compile a '!=' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.NotEquals instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
numberback to summary
protected Expression number(int opPos) throws TransformerException

Compile a 'number(...)' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Number instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
numberlitback to summary
protected Expression numberlit(int opPos)

Compile a literal number value.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.objects.XNumber instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
orback to summary
protected Expression or(int opPos) throws TransformerException

Compile an 'or' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Or instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
plusback to summary
protected Expression plus(int opPos) throws TransformerException

Compile a '+' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Plus instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
predicateback to summary
public Expression predicate(int opPos) throws TransformerException

Compile a location step predicate expression.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

the contained predicate expression.

Exceptions
TransformerException:
if a error occurs creating the Expression.
setNamespaceContextback to summary
public void setNamespaceContext(PrefixResolver pr)

Set the current namespace context for the xpath.

Parameters
pr:PrefixResolver

The resolver for prefixes in the XPath expression.

stepPatternback to summary
protected StepPattern stepPattern(int opPos, int stepCount, StepPattern ancestorPattern) throws TransformerException

Compile a step pattern unit expression, used for both location paths and match patterns.

Parameters
opPos:int

The current position in the m_opMap array.

stepCount:int

The number of steps to expect.

ancestorPattern:StepPattern

The owning StepPattern, which may be null.

Returns:StepPattern

reference to com.sun.org.apache.xpath.internal.patterns.StepPattern instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
stringback to summary
protected Expression string(int opPos) throws TransformerException

Compile a 'string(...)' operation.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.String instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
unionback to summary
protected Expression union(int opPos) throws TransformerException

Compile a location path union. The UnionPathIterator itself may create com.sun.org.apache.xpath.internal.axes.LocPathIterator children.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.axes.LocPathIterator instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
variableback to summary
protected Expression variable(int opPos) throws TransformerException

Compile a variable reference.

Parameters
opPos:int

The current position in the m_opMap array.

Returns:Expression

reference to com.sun.org.apache.xpath.internal.operations.Variable instance.

Exceptions
TransformerException:
if a error occurs creating the Expression.
warnback to summary
public void warn(String msg, Object[] args) throws TransformerException

Warn the user of an problem.

Parameters
msg:String

An error msgkey that corresponds to one of the constants found in com.sun.org.apache.xpath.internal.res.XPATHErrorResources, which is a key for a format string.

args:Object[]

An array of arguments represented in the format string, which may be null.

Exceptions
TransformerException:
if the current ErrorListoner determines to throw an exception.