Package codeanalysis.syntax
Class NameExpressionSyntax
java.lang.Object
codeanalysis.syntax.SyntaxNode
codeanalysis.syntax.ExpressionSyntax
codeanalysis.syntax.NameExpressionSyntax
The NameExpressionSyntax class represents a name expression in the syntax tree.
It consists of an identifier token within its value.
- Version:
- 1.0
- Author:
- Siyabend Urun
- See Also:
-
Field Summary
Fields inherited from class codeanalysis.syntax.SyntaxNode
_span -
Constructor Summary
ConstructorsConstructorDescriptionNameExpressionSyntax(SyntaxToken identifierToken) Creates a new instance of the NameExpressionSyntax class with the specified identifier token -
Method Summary
Modifier and TypeMethodDescriptionRetrieves an iterator over the child nodes of the literal expression.Retrieves the identifier token.getType()Retrieves the type of the syntax node.Methods inherited from class codeanalysis.syntax.SyntaxNode
getSpan, toString, writeTo
-
Constructor Details
-
NameExpressionSyntax
Creates a new instance of the NameExpressionSyntax class with the specified identifier token- Parameters:
identifierToken- The identifier token.
-
-
Method Details
-
getIdentifierToken
Retrieves the identifier token.- Returns:
- The identifier token.
-
getType
Retrieves the type of the syntax node.- Specified by:
getTypein classSyntaxNode- Returns:
- The syntax type.
-
getChildren
Retrieves an iterator over the child nodes of the literal expression. In this case, the only child node is the literal token.- Specified by:
getChildrenin classSyntaxNode- Returns:
- An iterator over the child nodes of the literal expression.
-