|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.SyntaxTreeNode org.apache.xalan.xsltc.compiler.Expression org.apache.xalan.xsltc.compiler.EqualityExpr
final class EqualityExpr
Field Summary | |
---|---|
private Expression |
_left
|
private int |
_op
|
private Expression |
_right
|
Fields inherited from class org.apache.xalan.xsltc.compiler.Expression |
---|
_falseList, _trueList, _type |
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
EqualityExpr(int op,
Expression left,
Expression right)
|
Method Summary | |
---|---|
Expression |
getLeft()
|
boolean |
getOp()
|
Expression |
getRight()
|
boolean |
hasLastCall()
|
boolean |
hasPositionCall()
Returns true if this expressions contains a call to position(). |
void |
setParser(Parser parser)
Set this node's parser. |
private void |
swapArguments()
|
java.lang.String |
toString()
|
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into JVM bytecodes. |
void |
translateDesynthesized(ClassGenerator classGen,
MethodGenerator methodGen)
Redefined by expressions of type boolean that use flow lists. |
Type |
typeCheck(SymbolTable stable)
Typing rules: see XSLT Reference by M. |
Methods inherited from class org.apache.xalan.xsltc.compiler.Expression |
---|
backPatchFalseList, backPatchTrueList, compile, desynthesize, evaluateAtCompileTime, getFalseList, getTrueList, getType, lookupPrimop, startIterator, synthesize |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
addAttribute, addElement, addPrefixMapping, compileResultTree, contextDependent, dependentContents, display, displayContents, elementAt, elementCount, elements, getAttribute, getAttribute, getAttributes, getContents, getImportPrecedence, getLineNumber, getNodeIDForStylesheetNSLookup, getParent, getParser, getPrefixMapping, getQName, getStylesheet, getSymbolTable, getTemplate, getXSLTC, hasAttribute, hasContents, indent, isDummy, lastChild, lookupNamespace, lookupPrefix, parseChildren, parseContents, removeElement, reportError, reportWarning, setAttributes, setFirstElement, setLineNumber, setParent, setPrefixMapping, setQName, setQName, translateContents, typeCheckContents, updateScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int _op
private Expression _left
private Expression _right
Constructor Detail |
---|
public EqualityExpr(int op, Expression left, Expression right)
Method Detail |
---|
public void setParser(Parser parser)
SyntaxTreeNode
setParser
in class SyntaxTreeNode
parser
- The XSLT parser.public java.lang.String toString()
toString
in class Expression
public Expression getLeft()
public Expression getRight()
public boolean getOp()
public boolean hasPositionCall()
hasPositionCall
in class Expression
public boolean hasLastCall()
hasLastCall
in class Expression
private void swapArguments()
public Type typeCheck(SymbolTable stable) throws TypeCheckError
typeCheck
in class Expression
stable
- The compiler/parser's symbol table
TypeCheckError
public void translateDesynthesized(ClassGenerator classGen, MethodGenerator methodGen)
Expression
translateDesynthesized
in class Expression
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
Expression
translate
in class Expression
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |