public abstract class NumberNode extends ASTNode
Modifier and Type | Field and Description |
---|---|
protected boolean |
sign |
fStringValue
Modifier | Constructor and Description |
---|---|
protected |
NumberNode(String value)
Instantiates a new number node.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Double value.
|
abstract boolean |
equals(Object obj)
Equals.
|
String |
getString()
Gets the string.
|
int |
hashCode()
Hash code.
|
boolean |
isSign()
Checks if is sign.
|
void |
toggleSign()
Toggle sign.
|
String |
toString()
To string.
|
protected NumberNode(String value)
value
- the valuepublic void toggleSign()
public String getString()
public String toString()
public boolean isSign()
public double doubleValue()
public abstract boolean equals(Object obj)
Copyright © 2018. All rights reserved.