![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
unary - operator: -A ("sign") More...
Public Member Functions | |
UnaryMinus () | |
create operation More... | |
double | getValue () |
get value More... | |
Type | getType () |
Get type identifier. More... | |
UnaryMinus | clone () |
Get a copy: a new AtomicExpression of same type/content. More... | |
String | toString () |
![]() | |
boolean | isOperator () |
node represents operator More... | |
boolean | isTerminal () |
node represents number or symbol More... | |
abstract Type | getType () |
Get type identifier. More... | |
AtomicExpression | clone () |
Get a copy: a new AtomicExpression of same type/content. More... | |
abstract double | getValue () |
get value More... | |
Additional Inherited Members | |
![]() | |
ExpressionTree | node_ = null |
uplink reference to node: node_.getData()==this @endiliteral More... | |
unary - operator: -A ("sign")
Definition at line 4 of file UnaryMinus.java.
create operation
Definition at line 6 of file UnaryMinus.java.
Referenced by aud.example.expr.UnaryMinus.clone().
UnaryMinus aud.example.expr.UnaryMinus.clone | ( | ) |
Get a copy: a new AtomicExpression of same type/content.
Reimplemented from aud.example.expr.AtomicExpression.
Definition at line 14 of file UnaryMinus.java.
References aud.example.expr.UnaryMinus.UnaryMinus().
Type aud.example.expr.UnaryMinus.getType | ( | ) |
Get type identifier.
Reimplemented from aud.example.expr.AtomicExpression.
Definition at line 13 of file UnaryMinus.java.
References aud.example.expr.AtomicExpression.Type.OpUnaryMinus.
double aud.example.expr.UnaryMinus.getValue | ( | ) |
get value
UnsupportedOperationException | if value cannot be determined |
Reimplemented from aud.example.expr.AtomicExpression.
Definition at line 8 of file UnaryMinus.java.
References aud.BinaryTree< T >.getData(), aud.BinaryTree< T >.getLeft(), aud.BinaryTree< T >.getRight(), and aud.example.expr.AtomicExpression.node_.
String aud.example.expr.UnaryMinus.toString | ( | ) |
Definition at line 15 of file UnaryMinus.java.