public class ExpressionVisitor
extends java.lang.Object
| Constructor and Description |
|---|
ExpressionVisitor(Configuration config)
Create an ExpressionVisitor
|
| Modifier and Type | Method and Description |
|---|---|
void |
decrementDepth()
Decrement depth
|
Configuration |
getConfiguration()
Get the Configuration
|
StaticContext |
getStaticContext()
Get the static context for the expressions being visited.
|
java.lang.String |
getTargetEdition()
Get the target edition for which we are optimizing
|
boolean |
incrementAndTestDepth()
Increment and test depth
|
boolean |
isOptimizeForPatternMatching()
Ask whether the visitor is to optimize expressions for pattern matching
|
boolean |
isOptimizeForStreaming()
Ask whether the visitor is to optimize expressions for evaluation in a streaming environment
|
void |
issueWarning(java.lang.String message,
Location locator)
Issue a warning message
|
static ExpressionVisitor |
make(StaticContext env)
Factory method: make an expression visitor
|
XPathContext |
makeDynamicContext()
Create a dynamic context suitable for early evaluation of constant subexpressions
|
void |
setOptimizeForPatternMatching(boolean option)
Tell the visitor to optimize expressions for pattern matching
|
void |
setOptimizeForStreaming(boolean option)
Tell the visitor to optimize expressions for evaluation in a streaming environment
|
void |
setStaticContext(StaticContext staticContext)
Set the static context for the expressions being visited.
|
public ExpressionVisitor(Configuration config)
config - the Saxon configurationpublic Configuration getConfiguration()
public StaticContext getStaticContext()
public void setStaticContext(StaticContext staticContext)
staticContext - the static contextpublic static ExpressionVisitor make(StaticContext env)
env - the static contextpublic void issueWarning(java.lang.String message,
Location locator)
message - the messagelocator - the query/stylesheet location associated with the messagepublic XPathContext makeDynamicContext()
public void setOptimizeForStreaming(boolean option)
option - true if optimizing for streamingpublic boolean isOptimizeForStreaming()
public void setOptimizeForPatternMatching(boolean option)
option - true if optimizing for pattern matchingpublic boolean isOptimizeForPatternMatching()
public java.lang.String getTargetEdition()
public boolean incrementAndTestDepth()
public void decrementDepth()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.