![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
Node representing a symbolic parameter, e.g., a varibale. More...
Public Member Functions | |
Symbol (String name) | |
create number More... | |
String | getName () |
get symbol's name More... | |
double | getValue () |
get value More... | |
Type | getType () |
Get type identifier. More... | |
Symbol | 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... | |
Node representing a symbolic parameter, e.g., a varibale.
Definition at line 6 of file Symbol.java.
aud.example.expr.Symbol.Symbol | ( | String | name | ) |
Symbol aud.example.expr.Symbol.clone | ( | ) |
Get a copy: a new AtomicExpression of same type/content.
Reimplemented from aud.example.expr.AtomicExpression.
Definition at line 21 of file Symbol.java.
String aud.example.expr.Symbol.getName | ( | ) |
Type aud.example.expr.Symbol.getType | ( | ) |
Get type identifier.
Reimplemented from aud.example.expr.AtomicExpression.
Definition at line 20 of file Symbol.java.
References aud.example.expr.AtomicExpression.Type.TSymbol.
double aud.example.expr.Symbol.getValue | ( | ) |
get value
UnsupportedOperationException | if value cannot be determined |
Reimplemented from aud.example.expr.AtomicExpression.
Definition at line 16 of file Symbol.java.
String aud.example.expr.Symbol.toString | ( | ) |
Definition at line 22 of file Symbol.java.