public class ConstBoolean extends ProgramNode
children, parent, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_INT, TYPE_UNDEFINED, values| Constructor and Description |
|---|
ConstBoolean()
Constructs the constant.
|
ConstBoolean(Element n)
Creates the constant via XML.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
eval()
Returns the value of the constant.
|
int |
getResultType()
Returns the result type.
|
java.lang.String |
getSignature()
Returns the string signature of the node.
|
void |
mutate()
Mutates via bit flip.
|
void |
randomize()
Assigns a random constant value.
|
java.lang.String |
toString()
Returns the string representation of the node.
|
Element |
toXml(Element parent)
Saves the constant to XML.
|
addValue, children, clearValues, clone, create, equals, getAllowsChildren, getChildAt, getChildCount, getIndex, getLevel, getOperandType, getParent, hashCode, insert, isLeaf, remove, remove, removeFromParent, setParent, setUserObjectpublic ConstBoolean()
public ConstBoolean(Element n)
n - an XML node elementpublic int getResultType()
getResultType in class ProgramNodepublic java.lang.Object eval()
eval in class ProgramNodepublic void randomize()
randomize in class ProgramNodepublic void mutate()
mutate in class ProgramNodepublic Element toXml(Element parent)
toXml in class ProgramNodeparent - the JDOM parent elementpublic java.lang.String getSignature()
getSignature in class ProgramNodepublic java.lang.String toString()
toString in class ProgramNode