public abstract class BinaryTerm extends BinaryExpression implements Term
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
Term |
getFirst()
Get first subterm.
|
Term |
getSecond()
Get second subterm.
|
Type |
getType()
Set type annotation of term.
|
boolean |
isAssociative()
Indicate whether operator is associative.
|
void |
setType(Type type)
Set type annotation of term.
|
acceptChildren, getOperatorgetPosition, getPrecedence, isLeftAssociative, isRightAssociative, setPositionaccept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrecedence, isLeftAssociative, isRightAssociativegetPosition, setPositionacceptChildren, print, printCore, toString, toStringCorepublic void setType(Type type)
public Type getType()
public Term getFirst()
getFirst in class BinaryExpressionpublic Term getSecond()
getSecond in class BinaryExpressionpublic boolean isAssociative()
public void accept(ASTVisitorOld visitor)
accept in interface ASTaccept in class BinaryExpressionvisitor - the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept in interface ASTaccept in class BinaryExpressionvisitor - the visitor who is accepted by this node.