|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Symbol
This class implements the foundations for symbolic programming in Java.
Symbols are totally ordered across all classes implementing this interface.
To perform the comparison across classes, i.e. to compare Symbols of
different types, the function getClassOrderIndex()
is used. This
assigns a numeric index to the class that can be compared to the index of a
different class. The comparison of Symbols of the same type is handled in
each class.
Method Summary | |
---|---|
int |
getClassOrderIndex()
This function returns the index used for ordering Symbols across different classes. |
boolean |
isBooleanSymbol()
This function tests whether this Symbol is a BooleanSymbol . |
boolean |
isNamedSymbol()
This function tests whether this Symbol is a NamedSymbol . |
boolean |
isNumericSymbol()
This function tests whether this Symbol is a NumericSymbol . |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
boolean isBooleanSymbol()
This function tests whether this Symbol is a BooleanSymbol
. This
default implementation always returns false.
boolean isNumericSymbol()
This function tests whether this Symbol is a NumericSymbol
. This
default implementation always returns false.
boolean isNamedSymbol()
This function tests whether this Symbol is a NamedSymbol
. This
default implementation always returns false.
int getClassOrderIndex()
This function returns the index used for ordering Symbols across different classes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |