Class Identifier
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.Identifier
- All Implemented Interfaces:
FromSourceLocation,ToNode
A name used to identify a component of a rule-set.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Gets the name of this identifier.Gets the source location of a value.inthashCode()static IdentifierCreates anIdentifierfrom the given name.static Identifierof(StringNode name) Creates anIdentifierfrom the given name.toNode()Converts a value to aNode.toString()
-
Method Details
-
of
Creates anIdentifierfrom the given name.- Parameters:
name- the name of the identifier to create.- Returns:
- the created Identifier.
-
of
Creates anIdentifierfrom the given name.- Parameters:
name- the name of the identifier to create.- Returns:
- the created Identifier.
-
getSourceLocation
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
getName
Gets the name of this identifier.- Returns:
- a node containing the name of the identifier.
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
equals
-
hashCode
public int hashCode() -
toString
-