edu.ksu.cis.projects.bogor.ast
Interface NumericallyNegatableLiteral
- All Known Implementing Classes:
- DoubleConstant, DoubleLiteral, FloatConstant, FloatLiteral, IntConstant, IntLiteral, LongConstant, LongLiteral
public interface NumericallyNegatableLiteral
Tagging interface used to indicate an AST node which stands for
some literal (either from the Literal or Constant
inheritance hierarchies) which contains a numerical value
which could be negated. Typically, this means that the node
represents an integral or floating point type.
- Author:
- Matt Hoosier
|
Method Summary |
void |
negate()
Convert the numeric value of this node to -v, where
v is the value in the pre-state. |
negate
void negate()
- Convert the numeric value of this node to
-v, where
v is the value in the pre-state.