public class BinaryExpressionADJ extends ExpressionADJ
Modifier and Type | Field and Description |
---|---|
protected Expression |
lhs |
protected ExpressionADJ |
lhsADJ |
protected int |
op |
protected Expression |
rhs |
protected ExpressionADJ |
rhsADJ |
ci, expr
Constructor and Description |
---|
BinaryExpressionADJ(Expression e) |
Modifier and Type | Method and Description |
---|---|
Set<Expression> |
getPreconditions(PatternOptimizationEE patternOptimization)
Get the preconditions for an expression
|
Expression |
interpolateVariables(RewriteContext rc)
Intepolate variable values into this expression
|
Expression |
optimizeForContextType(ContextItemStaticInfo contextItemType)
Optimize a pattern with respect to a context item type
|
Adjunct |
processRewrites(PatternOptimizationEE patternOptimization)
process any rewrites for this pattern
|
Expression |
unify(ExpressionADJ source,
RewriteContext rc)
Unify this expression against another expression
|
Set<RewriteContext> |
unifyingBindings(ExpressionADJ source,
RewriteContext rc)
Unify this expression against another expression
|
Adjunct |
updated() |
applyAxis, copyLocationInfo, evaluateAgainstBoolean, export, getOperandPreconditions, getOperandPreconditions, getPreconditions, getRetainedStaticContext, important, interpolateVariablesOperands, isCallOn, optimizeForName, optimizeForType, optimizeOperandsForContextType, sameClass, unifyOperandBindings, unifyOperands
getExpressionAdjunct, getNodeTestAdjunct, getPatternAdjunct, index
protected Expression lhs
protected Expression rhs
protected ExpressionADJ lhsADJ
protected ExpressionADJ rhsADJ
protected int op
public BinaryExpressionADJ(Expression e)
public Set<Expression> getPreconditions(PatternOptimizationEE patternOptimization)
ExpressionADJ
Note that as a Pattern is a subclass of Expression, we need different named functions for each type.
getPreconditions
in class ExpressionADJ
public Expression optimizeForContextType(ContextItemStaticInfo contextItemType)
ExpressionADJ
optimizeForContextType
in class ExpressionADJ
contextItemType
- the type of the context itempublic Expression unify(ExpressionADJ source, RewriteContext rc)
ExpressionADJ
unify
in class ExpressionADJ
source
- the expression to be unified againstrc
- the evaluation context to use (which may be side-effected)public Set<RewriteContext> unifyingBindings(ExpressionADJ source, RewriteContext rc)
ExpressionADJ
unifyingBindings
in class ExpressionADJ
source
- the expression to be unified againstrc
- the evaluation context to use (which may be side-effected)public Expression interpolateVariables(RewriteContext rc)
ExpressionADJ
interpolateVariables
in class ExpressionADJ
rc
- the evaluation context (which contains any variable bindings)public Adjunct processRewrites(PatternOptimizationEE patternOptimization)
processRewrites
in class Adjunct
patternOptimization
- definitions of pattern optimization controlspublic Adjunct updated()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.