Package codeanalysis.syntax
Class AssignmentExpressionSyntax
java.lang.Object
codeanalysis.syntax.SyntaxNode
codeanalysis.syntax.ExpressionSyntax
codeanalysis.syntax.AssignmentExpressionSyntax
The AssignmentExpressionSyntax class represents an assignment expression in the syntax tree.
It consists of an identifier token, an equals token, and an expression syntax representing the assigned value.
- Version:
- 1.0
- Author:
- Siyabend Urun
- See Also:
-
Field Summary
Fields inherited from class codeanalysis.syntax.SyntaxNode
_span -
Constructor Summary
ConstructorsConstructorDescriptionAssignmentExpressionSyntax(SyntaxToken identifierToken, SyntaxToken equalsToken, ExpressionSyntax expressionSyntax) Creates a new instance of the AssignmentExpressionSyntax class with the specified identifier token, equals token, and expression syntax. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves an iterator over the child nodes of the syntax node.Retrieves the expression syntax representing the assigned value.Retrieves the identifier token.getType()Retrieves the type of the syntax node.Methods inherited from class codeanalysis.syntax.SyntaxNode
getSpan, toString, writeTo
-
Constructor Details
-
AssignmentExpressionSyntax
public AssignmentExpressionSyntax(SyntaxToken identifierToken, SyntaxToken equalsToken, ExpressionSyntax expressionSyntax) Creates a new instance of the AssignmentExpressionSyntax class with the specified identifier token, equals token, and expression syntax.- Parameters:
identifierToken- The identifier token.equalsToken- The equals token.expressionSyntax- The expression syntax representing the assigned value.
-
-
Method Details
-
getExpressionSyntax
Retrieves the expression syntax representing the assigned value.- Returns:
- The expression syntax.
-
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 syntax node.- Specified by:
getChildrenin classSyntaxNode- Returns:
- An iterator over the child nodes.
-
getIdentifierToken
Retrieves the identifier token.- Returns:
- The identifier token.
-