Class Identifier
java.lang.Object
com.aquima.interactions.expressions.definition.Identifier
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionboolean
getName()
This method returns the name string for which identifier was defined.int
hashCode()
boolean
represents
(String str) This method checks if the identifier represents the string passed to the method.toString()
static Identifier
Creates an identifier based on a string.
-
Method Details
-
valueOf
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
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
-
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() -
equals
-