public class ExpressionVisitor extends Object
Constructor and Description |
---|
ExpressionVisitor(Configuration config)
Create an ExpressionVisitor
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration()
Get the Configuration
|
StaticContext |
getStaticContext()
Get the static context for the expressions being visited.
|
boolean |
isOptimizeForStreaming()
Ask whether the visitor is to optimize expressions for evaluation in a streaming environment
|
void |
issueWarning(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 |
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(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()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.