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 TypeMethodDescriptionboolean
getName()
Gets the name of this identifier.Gets the source location of a value.int
hashCode()
static Identifier
Creates anIdentifier
from the given name.static Identifier
of
(StringNode name) Creates anIdentifier
from the given name.toNode()
Converts a value to aNode
.toString()
-
Method Details
-
of
Creates anIdentifier
from the given name.- Parameters:
name
- the name of the identifier to create.- Returns:
- the created Identifier.
-
of
Creates anIdentifier
from the given name.- Parameters:
name
- the name of the identifier to create.- Returns:
- the created Identifier.
-
getSourceLocation
Description copied from interface:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in 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:ToNode
Converts a value to aNode
. -
equals
-
hashCode
public int hashCode() -
toString
-