Uses of Class
codeanalysis.syntax.SyntaxToken
Packages that use SyntaxToken
-
Uses of SyntaxToken in codeanalysis.syntax
Methods in codeanalysis.syntax that return SyntaxTokenModifier and TypeMethodDescriptionParanthesizedExpressionSyntax.getCloseParenthesisToken()Gets the closing parenthesis token of the parenthesized expression.AssignmentExpressionSyntax.getIdentifierToken()Retrieves the identifier token.NameExpressionSyntax.getIdentifierToken()Retrieves the identifier token.LiteralExpressionSyntax.getLiteralToken()Gets the literal token representing the value of the literal expression.Lexer.getNextToken()Retrieves the next token from the text being analyzed.BinaryExpressionSyntax.getNumberToken()Gets the number token.ParanthesizedExpressionSyntax.getOpenParenthesisToken()Gets the opening parenthesis token of the parenthesized expression.BinaryExpressionSyntax.getOperator()Gets the operator token.UnaryExpressionSyntax.getOperator()Gets the operator token.Methods in codeanalysis.syntax that return types with arguments of type SyntaxTokenModifier and TypeMethodDescriptionstatic Iterable<SyntaxToken>SyntaxTree.parseTokens(SourceText text) Parses the specified source code text and returns the corresponding tokens.static Iterable<SyntaxToken>SyntaxTree.parseTokens(String text) Parses the specified source code text and returns the corresponding tokens.Methods in codeanalysis.syntax with parameters of type SyntaxTokenModifier and TypeMethodDescriptionvoidParanthesizedExpressionSyntax.setCloseParenthesisToken(SyntaxToken closeParenthesisToken) Sets the closing parenthesis token for the paranthesized expression.voidLiteralExpressionSyntax.setLiteralToken(SyntaxToken literalToken) Sets the literal token for the literal expression.voidBinaryExpressionSyntax.setNumberToken(SyntaxToken _numberToken) Sets the number token.voidParanthesizedExpressionSyntax.setOpenParenthesisToken(SyntaxToken openParenthesisToken) Sets the opening parenthesis token for the paranthesized expression.voidBinaryExpressionSyntax.setOperator(SyntaxToken operator) Sets the operator token.voidUnaryExpressionSyntax.setOperator(SyntaxToken operator) Sets the operator token.Constructors in codeanalysis.syntax with parameters of type SyntaxTokenModifierConstructorDescriptionAssignmentExpressionSyntax(SyntaxToken identifierToken, SyntaxToken equalsToken, ExpressionSyntax expressionSyntax) Creates a new instance of the AssignmentExpressionSyntax class with the specified identifier token, equals token, and expression syntax.BinaryExpressionSyntax(ExpressionSyntax left, SyntaxToken operator, ExpressionSyntax right) Initializes a new instance of the BinaryExpressionSyntax class.LiteralExpressionSyntax(SyntaxToken literalToken) Initializes a new instance of the LiteralExpressionSyntax class with the specified literal token.LiteralExpressionSyntax(SyntaxToken literalToken, Object value) Initializes a new instance of the LiteralExpressionSyntax class with the specified literal token.NameExpressionSyntax(SyntaxToken identifierToken) Creates a new instance of the NameExpressionSyntax class with the specified identifier tokenParanthesizedExpressionSyntax(SyntaxToken openParenthesisToken, ExpressionSyntax expression, SyntaxToken closeParenthesisToken) Initializes a new instance of the ParenthesizedExpressionSyntax class with the specified tokens and expression.SyntaxTree(SourceText text, DiagnosticBox diagnostics, ExpressionSyntax root, SyntaxToken EOFToken) Initializes a new instance of the SyntaxTree class with the specified diagnostics, root expression syntax, and end-of-file token.UnaryExpressionSyntax(SyntaxToken operator, ExpressionSyntax operand) Initializes a new instance of the UnaryExpressionSyntax class.