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 environment for which we are optimizing
|
boolean |
incrementAndTestDepth()
Increment and test depth
|
boolean |
isOptimizeForPatternMatching()
Ask whether the visitor is to optimize expressions for evaluation as an XSLT match pattern
|
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
|
boolean |
isSuppressWarnings()
Ask if warnings have been suppressed.
|
static ExpressionVisitor |
make(StaticContext env)
Factory method: make an expression visitor
|
XPathContext |
makeDynamicContext()
Create a dynamic context suitable for early evaluation of constant subexpressions
|
Optimizer |
obtainOptimizer()
Obtain an optimizer.
|
void |
setOptimizeForPatternMatching(boolean option)
Tell the visitor to optimize expressions for evaluation as an XSLT match pattern
|
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.
|
void |
setSuppressWarnings(boolean suppressWarnings)
Say whether warnings should be suppressed.
|
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 Optimizer obtainOptimizer()
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()
public boolean isSuppressWarnings()
public void setSuppressWarnings(boolean suppressWarnings)
suppressWarnings
- set to true to suppress warningsCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.