edu.ksu.cis.projects.bogor.ast
Class BooleanLiteral

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.ast.Node
      extended by edu.ksu.cis.projects.bogor.ast.Literal
          extended by edu.ksu.cis.projects.bogor.ast.BooleanLiteral
All Implemented Interfaces:
Disposable, Serializable, Cloneable

public final class BooleanLiteral
extends Literal

Boolean literal AST.

Version:
CVS $Revision: 1.4 $ $Date: 2005/01/13 23:40:09 $
Author:
Robby
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node
ILLEGAL_LOCAL_ID_CHAR
 
Constructor Summary
BooleanLiteral(boolean bool)
          Default constructor.
 
Method Summary
 BooleanLiteral clone()
          Clones this object (deep clone); including location info.
 boolean getBool()
          Gets the bool.
 void setBool(boolean newBool)
          Sets the bool.
 String toString()
          Returns the string representation of this object.
 void visit(ASTVisitor visitor)
           
 
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Literal
dispose, 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

BooleanLiteral

public BooleanLiteral(boolean bool)
Default constructor.

Parameters:
bool - The bool.
Method Detail

setBool

public void setBool(boolean newBool)
Sets the bool.

Parameters:
newBool - The new bool.

getBool

public boolean getBool()
Gets the bool.

Returns:
The bool.

clone

public BooleanLiteral clone()
Clones this object (deep clone); including location info.

Specified by:
clone in class Literal
Returns:
The clone of this object. Non-null.

toString

public String toString()
Returns the string representation of this object.

Specified by:
toString in class Node
Returns:
"bool".

visit

public void visit(ASTVisitor visitor)
Specified by:
visit in class Node