com.voytechs.jnetstream.npl
Class IntNodeImpl
java.lang.Object
com.voytechs.jnetstream.npl.Node
com.voytechs.jnetstream.npl.IntNodeImpl
- All Implemented Interfaces:
- BooleanNode, IntNode, StringNode
public class IntNodeImpl
- extends Node
- implements IntNode, BooleanNode, StringNode
|
Field Summary |
protected int |
value
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
protected int value
IntNodeImpl
public IntNodeImpl(Node parent,
int value)
- Parameters:
-
- Throws:
getInt
public int getInt()
- Specified by:
getInt in interface IntNode
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean in interface BooleanNode
getString
public java.lang.String getString()
- Specified by:
getString in interface StringNode
optimize
public Node optimize()
- Specified by:
optimize in class Node
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
canOptimize
public boolean canOptimize()
- Specified by:
canOptimize in class Node
main
public static void main(java.lang.String[] args)
- Test function for IntNodeImpl
- Parameters:
args - command line arguments