public class Variable extends StringTerm
value
Constructor and Description |
---|
Variable(java.lang.String name)
Ctor: Creates a new Variable with the given name and the default
Sort "Thing".
|
Variable(java.lang.String name,
Sort sort)
Ctor: Creates a new Variable with the given name and sort.
|
Variable(Variable other)
Copy-Ctor: Creates a deep copy of the given Variable
|
Modifier and Type | Method and Description |
---|---|
Variable |
clone()
Creates a deep copy of the term
|
void |
set(java.lang.String value)
Changes the java-object representation of the term to the
given value.
|
get, toString
containsTermsOfType, equals, getSort, getTerms, getTerms, hashCode, substitute
public Variable(java.lang.String name)
name
- The name of the Variable has to start with an
upper-case character.public Variable(java.lang.String name, Sort sort)
name
- The name of the Variable has to start with an
upper-case character.sort
- The Sort (type) of the Variable.public Variable(Variable other)
other
- The Variable that acts as source for the copy.public void set(java.lang.String value)
Term
set
in interface Term<java.lang.String>
set
in class StringTerm
value
- The new java-object representation of the term.