public enum TermType extends Enum<TermType>
Term.getType()
Enum Constant and Description |
---|
ATOM |
CLP_VARIABLE
Constraint Logic Programming variable
|
EMPTY_LIST |
FRACTION |
INTEGER |
LIST |
STRUCTURE |
VARIABLE |
Modifier and Type | Method and Description |
---|---|
int |
getPrecedence()
Used to consistently order
Term s of different types. |
boolean |
isNumeric() |
boolean |
isStructure() |
boolean |
isVariable() |
static TermType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TermType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TermType CLP_VARIABLE
public static final TermType FRACTION
DecimalFraction
public static final TermType INTEGER
IntegerNumber
public static TermType[] values()
for (TermType c : TermType.values()) System.out.println(c);
public static TermType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isStructure()
true
if this type represents "compound structure"public boolean isNumeric()
true
if this type represents instances of Numeric
public boolean isVariable()
true
if this type represents a variablepublic int getPrecedence()
Term
s of different types.TermComparator.compare(Term, Term)
Copyright © 2024. All rights reserved.