Uses of Enum Class
codeanalysis.syntax.SyntaxType
Packages that use SyntaxType
-
Uses of SyntaxType in codeanalysis
Methods in codeanalysis with parameters of type SyntaxTypeModifier and TypeMethodDescriptionvoidDiagnosticBox.reportUnexpectedToken(TextSpan span, SyntaxType actualType, SyntaxType expectedType) Reports an error for an unexpected token with the specified TextSpan, actual type, and expected type. -
Uses of SyntaxType in codeanalysis.binding
Methods in codeanalysis.binding that return SyntaxTypeModifier and TypeMethodDescriptionBoundBinaryOperator.getSyntaxType()Gets the syntax type associated with the operator.BoundUnaryOperator.getSyntaxType()Gets the syntax type of the operator.Methods in codeanalysis.binding with parameters of type SyntaxTypeModifier and TypeMethodDescriptionstatic BoundBinaryOperatorBoundBinaryOperator.bind(SyntaxType syntaxType, Class<?> leftType, Class<?> rightType) Binds a binary operator based on the syntax type, left type, and right type.static BoundUnaryOperatorBoundUnaryOperator.bind(SyntaxType syntaxType, Class<?> operandType) Binds a unary operator based on the syntax type and operand type. -
Uses of SyntaxType in codeanalysis.syntax
Methods in codeanalysis.syntax that return SyntaxTypeModifier and TypeMethodDescriptionstatic SyntaxTypeSyntaxRules.getKeywordType(String text) Gets the syntax type based on a keyword.AssignmentExpressionSyntax.getType()Retrieves the type of the syntax node.BinaryExpressionSyntax.getType()Gets the type of the syntax node.LiteralExpressionSyntax.getType()Gets the syntax type of the literal expression.NameExpressionSyntax.getType()Retrieves the type of the syntax node.ParanthesizedExpressionSyntax.getType()Gets the syntax type of the parenthesized expression.abstract SyntaxTypeSyntaxNode.getType()Gets the type of the syntax node.SyntaxToken.getType()Gets the type of the syntax token.UnaryExpressionSyntax.getType()Gets the type of the syntax node.static SyntaxTypeReturns the enum constant of this class with the specified name.static SyntaxType[]SyntaxType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in codeanalysis.syntax that return types with arguments of type SyntaxTypeModifier and TypeMethodDescriptionstatic ArrayList<SyntaxType>SyntaxRules.getBinaryOperatorTypes()Returns the all binary operator types.static ArrayList<SyntaxType>SyntaxRules.getUnaryOperatorTypes()Returns the all unary operator types.Methods in codeanalysis.syntax with parameters of type SyntaxTypeModifier and TypeMethodDescriptionvoidAssertingEnumerator.assertNode(SyntaxType type) Asserts that the next node is of the specified type.voidAssertingEnumerator.assertToken(SyntaxType type, String text) Asserts that the next node is of the specified type and has the specified text.static intSyntaxPriorities.getBinaryOperatorPriority(SyntaxType type) Retrieves the priority of a binary operator based on its syntax type.static StringSyntaxRules.getTextData(SyntaxType type) Gets the text data based on syntax type.static intSyntaxPriorities.getUnaryOperatorPriority(SyntaxType type) Retrieves the priority of a unary operator based on its syntax type.voidParserTest.parserBinaryExpressionHonorsPrecedences(SyntaxType op1, SyntaxType op2) Test if binary operators are parsed correctly.voidParserTest.parserUnaryExpressionHonorsPrecedences(SyntaxType unaryType, SyntaxType binaryType) Test if unary operators are parsed correctly.Constructors in codeanalysis.syntax with parameters of type SyntaxTypeModifierConstructorDescriptionSyntaxToken(SyntaxType type, int position, String data, Object value) Initializes a new instance of the SyntaxToken class with the specified type, position, data, and value.