cb.petal
Class BooleanLiteral

java.lang.Object
  |
  +--cb.petal.Literal
        |
        +--cb.petal.BooleanLiteral
All Implemented Interfaces:
java.lang.Cloneable, PetalNode, java.io.Serializable

public class BooleanLiteral
extends Literal

Boolean literal which may obviously either be true or false.

Version:
$Id: BooleanLiteral.java,v 1.9 2001/07/09 07:48:52 dahm Exp $
Author:
M. Dahm
See Also:
Serialized Form

Constructor Summary
BooleanLiteral(boolean value)
           
 
Method Summary
 void accept(Visitor v)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object getLiteralValue()
           
 boolean getValue()
           
 void setValue(boolean v)
           
 java.lang.String toString()
           
 
Methods inherited from class cb.petal.Literal
clone, getChildCount, getKind
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanLiteral

public BooleanLiteral(boolean value)
Method Detail

getValue

public boolean getValue()

setValue

public void setValue(boolean v)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLiteralValue

public java.lang.Object getLiteralValue()
Overrides:
getLiteralValue in class Literal
Following copied from class: cb.petal.Literal
Returns:
object corresponding to the usual Java hierarchy, e.g., an Integer for an IntegerLiteral.

accept

public void accept(Visitor v)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object