Enum TermType

java.lang.Object
java.lang.Enum<TermType>
org.projog.core.term.TermType
All Implemented Interfaces:
Serializable, Comparable<TermType>

public enum TermType extends Enum<TermType>
Defines the type of terms supported by Projog.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static TermType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TermType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isStructure

      public boolean isStructure()
      Returns:
      true if this type represents "compound structure"
    • isNumeric

      public boolean isNumeric()
      Returns:
      true if this type represents instances of Numeric
    • isVariable

      public boolean isVariable()
      Returns:
      true if this type represents a variable
    • getPrecedence

      public int getPrecedence()
      Used to consistently order Terms of different types.
      Returns:
      precedence of this type
      See Also: