|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.Node edu.ksu.cis.projects.bogor.ast.Exp edu.ksu.cis.projects.bogor.ast.BinaryExp
public final class BinaryExp
Binary exp AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Exp |
---|
TYPE |
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
BinaryExp(BinaryOp binaryOp,
Exp exp1,
Exp exp2)
Default constructor. |
Method Summary | |
---|---|
BinaryExp |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes exp1 and exp2. |
BinaryOp |
getBinaryOp()
Gets the binary operator. |
Exp |
getExp1()
Gets the first exp. |
Exp |
getExp2()
Gets the second exp. |
void |
setBinaryOp(BinaryOp newBinaryOp)
Sets the binary operator. |
void |
setExp1(Exp newExp1)
Sets the first exp. |
void |
setExp2(Exp newExp2)
Sets the second exp. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Exp |
---|
getParent, setParent |
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BinaryExp(BinaryOp binaryOp, Exp exp1, Exp exp2)
binaryOp
- The binary operator. Must be valid.exp1
- The first exp. Must be non-null.exp2
- The second exp. Must be non-null.Method Detail |
---|
public void setBinaryOp(BinaryOp newBinaryOp)
newBinaryOp
- The new binary operator. Must be valid.public BinaryOp getBinaryOp()
public void setExp1(Exp newExp1)
newExp1
- The new first exp. Must be non-null.public Exp getExp1()
public void setExp2(Exp newExp2)
newExp2
- The new second exp. Must be non-null.public Exp getExp2()
public BinaryExp clone()
clone
in class Exp
public void dispose()
dispose
in interface Disposable
dispose
in class Exp
public String toString()
toString
in class Node
public void visit(ASTVisitor visitor)
visit
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |