info.bliki.wiki.template.expr.ast
Class NumberNode
java.lang.Object
info.bliki.wiki.template.expr.ast.ASTNode
info.bliki.wiki.template.expr.ast.NumberNode
- Direct Known Subclasses:
- FloatNode, FractionNode, IntegerNode
public abstract class NumberNode
- extends ASTNode
The basic node for a parsed expression string
Field Summary |
protected boolean |
sign
|
Constructor Summary |
protected |
NumberNode(java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
sign
protected boolean sign
NumberNode
protected NumberNode(java.lang.String value)
toggleSign
public void toggleSign()
getString
public java.lang.String getString()
- Description copied from class:
ASTNode
- Returns the parsed string of this node.
- Overrides:
getString
in class ASTNode
- Returns:
null
if there's another representation in the
derived class
toString
public java.lang.String toString()
- Overrides:
toString
in class ASTNode
isSign
public boolean isSign()
doubleValue
public double doubleValue()
equals
public abstract boolean equals(java.lang.Object obj)
- Specified by:
equals
in class ASTNode
hashCode
public int hashCode()
- Overrides:
hashCode
in class ASTNode
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.