|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectast.ASTNode
ast.Expr
ast.ConstExpr
ast.ConstStringExpr
public class ConstStringExpr
The ConstStringExpr class represents a String constant expression. It extends constant expressions so it contains a constant value (represented as a String). Since this class is similar to other subclasses most of the functionality can be implemented in the visitor method for the parent class.
ASTNode
,
ConstExpr
Field Summary |
---|
Fields inherited from class ast.ConstExpr |
---|
constant |
Fields inherited from class ast.ASTNode |
---|
charNum, lineNum, lineStr |
Constructor Summary | |
---|---|
ConstStringExpr(int lineNum,
java.lang.String constant)
ConstStringExpr constructor |
Method Summary | |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method |
Methods inherited from class ast.ConstExpr |
---|
getConstant |
Methods inherited from class ast.Expr |
---|
getExprType, setExprType |
Methods inherited from class ast.ASTNode |
---|
getLineNum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstStringExpr(int lineNum, java.lang.String constant)
lineNum
- source line number corresponding to this AST nodeconstant
- constant value (as a String)Method Detail |
---|
public java.lang.Object accept(visitor.Visitor v, java.lang.Object o)
accept
in class ConstExpr
v
- visitor objecto
- object to pass down
Visitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |