java.lang.Object
com.aquima.interactions.expressions.definition.Identifier
All Implemented Interfaces:
Serializable

public final class Identifier extends Object implements Serializable
This class represents a single identifier in an expression. The Identifier class is for instance used to hold the name of functions and fields.
Since:
5.0
Author:
F. van der Meer, O. Kerpershoek
See Also:
  • Method Details

    • valueOf

      public static Identifier valueOf(String str)
      Creates an identifier based on a string.
      Parameters:
      str - The string for which the identifier is requested.
      Returns:
      The identifier for the specified string.
    • represents

      public boolean represents(String str)
      This method checks if the identifier represents the string passed to the method. An identifier is said to represent the string argument when the name of the identifier matches the passed string regardless of casing and trailing white-spaces.
      Parameters:
      str - The string the identifier should be compared to.
      Returns:
      A boolean indicating if this identifier matches the string.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()
      This method returns the name string for which identifier was defined.
      Returns:
      the name string for which identifier was defined.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object