|
||||||||||
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.Constant edu.ksu.cis.projects.bogor.ast.StringConstant
public final class StringConstant
String constant AST
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
StringConstant(String id)
Default constructor. |
|
StringConstant(String id,
ASTType coercedType)
Default constructor. |
|
StringConstant(String id,
String string)
Default constructor. |
|
StringConstant(String id,
String string,
ASTType coercedType)
Default constructor. |
Method Summary | |
---|---|
StringConstant |
clone()
Clones this object (deep clone); including location info. |
String |
getId()
Gets the id. |
String |
getOptionalString()
Gets the string. |
void |
setId(String newId)
Sets the id. |
void |
setString(String newString)
Sets the string. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Constant |
---|
dispose, getOptionalCoercedType, getParent, setCoercedType, 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 StringConstant(String id)
id
- The id. Must be non-null.public StringConstant(String id, String string)
id
- The id. Must be non-null.string
- The string. Must be non-null.public StringConstant(String id, ASTType coercedType)
id
- The id. Must be non-null.coercedType
- The type to which the value is cast. Must be non-null.public StringConstant(String id, String string, ASTType coercedType)
id
- The id. Must be non-null.string
- The string. Must be non-null.coercedType
- The type to which the value is cast. Must be non-null.Method Detail |
---|
public void setId(String newId)
newId
- The new id. Must be non-null.public String getId()
public void setString(String newString)
newString
- The new string. Must be non-null.public String getOptionalString()
null
if the const is
bound to the BIR null
literal.public StringConstant clone()
clone
in class Constant
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 |