info.bliki.wiki.template.expr.ast
Class NumberNode

java.lang.Object
  extended by info.bliki.wiki.template.expr.ast.ASTNode
      extended by 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
           
 
Fields inherited from class info.bliki.wiki.template.expr.ast.ASTNode
fStringValue
 
Constructor Summary
protected NumberNode(java.lang.String value)
           
 
Method Summary
 double doubleValue()
           
abstract  boolean equals(java.lang.Object obj)
           
 java.lang.String getString()
          Returns the parsed string of this node.
 int hashCode()
           
 boolean isSign()
           
 void toggleSign()
           
 java.lang.String toString()
           
 
Methods inherited from class info.bliki.wiki.template.expr.ast.ASTNode
dependsOn, derivative
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sign

protected boolean sign
Constructor Detail

NumberNode

protected NumberNode(java.lang.String value)
Method Detail

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.