Package org.sonar.java.ast.parser
Class JavaGrammar
- java.lang.Object
-
- org.sonar.java.ast.parser.JavaGrammar
-
public class JavaGrammar extends Object
-
-
Constructor Summary
Constructors Constructor Description JavaGrammar(com.sonar.sslr.api.typed.GrammarBuilder<InternalSyntaxToken> b, TreeFactory f)
-
Method Summary
-
-
-
Constructor Detail
-
JavaGrammar
public JavaGrammar(com.sonar.sslr.api.typed.GrammarBuilder<InternalSyntaxToken> b, TreeFactory f)
-
-
Method Detail
-
MODIFIERS
public ModifiersTreeImpl MODIFIERS()
-
MODIFIER_KEYWORD
public ModifierKeywordTreeImpl MODIFIER_KEYWORD()
-
LITERAL
public ExpressionTree LITERAL()
-
COMPILATION_UNIT
public JavaTree.CompilationUnitTreeImpl COMPILATION_UNIT()
-
MODULE_DECLARATION
public ModuleDeclarationTree MODULE_DECLARATION()
-
MODULE_NAME
public ModuleNameTree MODULE_NAME()
-
MODULE_NAME_LIST
public ModuleNameListTreeImpl MODULE_NAME_LIST()
-
MODULE_DIRECTIVE
public ModuleDirectiveTree MODULE_DIRECTIVE()
-
REQUIRES_MODULE_DIRECTIVE
public ModuleDirectiveTree REQUIRES_MODULE_DIRECTIVE()
-
REQUIRES_MODIFIER
public InternalSyntaxToken REQUIRES_MODIFIER()
-
EXPORTS_MODULE_DIRECTIVE
public ModuleDirectiveTree EXPORTS_MODULE_DIRECTIVE()
-
OPENS_MODULE_DIRECTIVE
public ModuleDirectiveTree OPENS_MODULE_DIRECTIVE()
-
USES_MODULE_DIRECTIVE
public ModuleDirectiveTree USES_MODULE_DIRECTIVE()
-
PROVIDES_MODULE_DIRECTIVE
public ModuleDirectiveTree PROVIDES_MODULE_DIRECTIVE()
-
PACKAGE_DECLARATION
public PackageDeclarationTree PACKAGE_DECLARATION()
-
IMPORT_DECLARATION
public ImportClauseTree IMPORT_DECLARATION()
-
TYPE_DECLARATION
public Tree TYPE_DECLARATION()
-
TYPE
public TypeTree TYPE()
-
TYPE_ARGUMENTS
public TypeArgumentListTreeImpl TYPE_ARGUMENTS()
-
TYPE_ARGUMENT
public Tree TYPE_ARGUMENT()
-
TYPE_PARAMETERS
public TypeParameterListTreeImpl TYPE_PARAMETERS()
-
TYPE_PARAMETER
public TypeParameterTreeImpl TYPE_PARAMETER()
-
BOUND
public BoundListTreeImpl BOUND()
-
CLASS_DECLARATION
public ClassTreeImpl CLASS_DECLARATION()
-
CLASS_BODY
public ClassTreeImpl CLASS_BODY()
-
CLASS_MEMBER
public JavaTree CLASS_MEMBER()
-
METHOD_OR_CONSTRUCTOR_DECLARATION
public MethodTreeImpl METHOD_OR_CONSTRUCTOR_DECLARATION()
-
FIELD_DECLARATION
public VariableDeclaratorListTreeImpl FIELD_DECLARATION()
-
ENUM_DECLARATION
public ClassTreeImpl ENUM_DECLARATION()
-
ENUM_CONSTANT
public EnumConstantTreeImpl ENUM_CONSTANT()
-
INTERFACE_DECLARATION
public ClassTreeImpl INTERFACE_DECLARATION()
-
INTERFACE_BODY
public ClassTreeImpl INTERFACE_BODY()
-
ANNOTATION_TYPE_DECLARATION
public ClassTreeImpl ANNOTATION_TYPE_DECLARATION()
-
ANNOTATION_TYPE_BODY
public ClassTreeImpl ANNOTATION_TYPE_BODY()
-
ANNOTATION_TYPE_ELEMENT_DECLARATION
public JavaTree ANNOTATION_TYPE_ELEMENT_DECLARATION()
-
ANNOTATION_TYPE_ELEMENT_REST
public JavaTree ANNOTATION_TYPE_ELEMENT_REST()
-
ANNOTATION_METHOD_REST
public MethodTreeImpl ANNOTATION_METHOD_REST()
-
DEFAULT_VALUE
public TreeFactory.Tuple<InternalSyntaxToken,ExpressionTree> DEFAULT_VALUE()
-
ANNOTATION
public AnnotationTreeImpl ANNOTATION()
-
ANNOTATION_REST
public ArgumentListTreeImpl ANNOTATION_REST()
-
NORMAL_ANNOTATION_REST
public ArgumentListTreeImpl NORMAL_ANNOTATION_REST()
-
ELEMENT_VALUE_PAIRS
public ArgumentListTreeImpl ELEMENT_VALUE_PAIRS()
-
ELEMENT_VALUE_PAIR
public AssignmentExpressionTreeImpl ELEMENT_VALUE_PAIR()
-
ELEMENT_VALUE
public ExpressionTree ELEMENT_VALUE()
-
ELEMENT_VALUE_ARRAY_INITIALIZER
public NewArrayTreeImpl ELEMENT_VALUE_ARRAY_INITIALIZER()
-
ELEMENT_VALUES
public NewArrayTreeImpl ELEMENT_VALUES()
-
SINGLE_ELEMENT_ANNOTATION_REST
public ArgumentListTreeImpl SINGLE_ELEMENT_ANNOTATION_REST()
-
FORMAL_PARAMETERS
public FormalParametersListTreeImpl FORMAL_PARAMETERS()
-
FORMAL_PARAMETERS_DECLS
public FormalParametersListTreeImpl FORMAL_PARAMETERS_DECLS()
-
FORMAL_PARAMETERS_DECLS_REST
public FormalParametersListTreeImpl FORMAL_PARAMETERS_DECLS_REST()
-
RECEIVER_PARAMETER_ID
public VariableTreeImpl RECEIVER_PARAMETER_ID()
-
VARIABLE_DECLARATOR_ID
public VariableTreeImpl VARIABLE_DECLARATOR_ID()
-
FORMAL_PARAMETER
public VariableTreeImpl FORMAL_PARAMETER()
-
LOCAL_VARIABLE_DECLARATION_STATEMENT
public VariableDeclaratorListTreeImpl LOCAL_VARIABLE_DECLARATION_STATEMENT()
-
LOCAL_VARIABLE_TYPE
public TypeTree LOCAL_VARIABLE_TYPE()
-
VAR_TYPE
public VarTypeTreeImpl VAR_TYPE()
-
VARIABLE_DECLARATORS
public VariableDeclaratorListTreeImpl VARIABLE_DECLARATORS()
-
VARIABLE_DECLARATOR
public VariableTreeImpl VARIABLE_DECLARATOR()
-
STATEMENT
public StatementTree STATEMENT()
-
BLOCK
public BlockTreeImpl BLOCK()
-
ASSERT_STATEMENT
public AssertStatementTreeImpl ASSERT_STATEMENT()
-
IF_STATEMENT
public IfStatementTreeImpl IF_STATEMENT()
-
FOR_STATEMENT
public StatementTree FOR_STATEMENT()
-
STANDARD_FOR_STATEMENT
public ForStatementTreeImpl STANDARD_FOR_STATEMENT()
-
FOR_INIT
public StatementExpressionListTreeImpl FOR_INIT()
-
FOR_INIT_DECLARATION
public StatementExpressionListTreeImpl FOR_INIT_DECLARATION()
-
FOR_INIT_EXPRESSIONS
public StatementExpressionListTreeImpl FOR_INIT_EXPRESSIONS()
-
FOR_UPDATE
public StatementExpressionListTreeImpl FOR_UPDATE()
-
STATEMENT_EXPRESSIONS
public StatementExpressionListTreeImpl STATEMENT_EXPRESSIONS()
-
FOREACH_STATEMENT
public ForEachStatementImpl FOREACH_STATEMENT()
-
WHILE_STATEMENT
public WhileStatementTreeImpl WHILE_STATEMENT()
-
DO_WHILE_STATEMENT
public DoWhileStatementTreeImpl DO_WHILE_STATEMENT()
-
TRY_STATEMENT
public TryStatementTreeImpl TRY_STATEMENT()
-
STANDARD_TRY_STATEMENT
public TryStatementTreeImpl STANDARD_TRY_STATEMENT()
-
CATCH_CLAUSE
public CatchTreeImpl CATCH_CLAUSE()
-
CATCH_FORMAL_PARAMETER
public VariableTreeImpl CATCH_FORMAL_PARAMETER()
-
CATCH_TYPE
public TypeTree CATCH_TYPE()
-
FINALLY
public TryStatementTreeImpl FINALLY()
-
TRY_WITH_RESOURCES_STATEMENT
public TryStatementTreeImpl TRY_WITH_RESOURCES_STATEMENT()
-
RESOURCES
public ResourceListTreeImpl RESOURCES()
-
RESOURCE
public Tree RESOURCE()
-
SWITCH_STATEMENT
public SwitchStatementTreeImpl SWITCH_STATEMENT()
-
SWITCH_GROUP
public CaseGroupTreeImpl SWITCH_GROUP()
-
SWITCH_LABEL
public CaseLabelTreeImpl SWITCH_LABEL()
-
SYNCHRONIZED_STATEMENT
public SynchronizedStatementTreeImpl SYNCHRONIZED_STATEMENT()
-
BREAK_STATEMENT
public BreakStatementTreeImpl BREAK_STATEMENT()
-
CONTINUE_STATEMENT
public ContinueStatementTreeImpl CONTINUE_STATEMENT()
-
RETURN_STATEMENT
public ReturnStatementTreeImpl RETURN_STATEMENT()
-
THROW_STATEMENT
public ThrowStatementTreeImpl THROW_STATEMENT()
-
LABELED_STATEMENT
public LabeledStatementTreeImpl LABELED_STATEMENT()
-
EXPRESSION_STATEMENT
public ExpressionStatementTreeImpl EXPRESSION_STATEMENT()
-
EMPTY_STATEMENT
public EmptyStatementTreeImpl EMPTY_STATEMENT()
-
BLOCK_STATEMENTS
public BlockStatementListTreeImpl BLOCK_STATEMENTS()
-
BLOCK_STATEMENT
public BlockStatementListTreeImpl BLOCK_STATEMENT()
-
EXPRESSION
public ExpressionTree EXPRESSION()
-
ASSIGNMENT_EXPRESSION
public ExpressionTree ASSIGNMENT_EXPRESSION()
-
CONDITIONAL_EXPRESSION
public ExpressionTree CONDITIONAL_EXPRESSION()
-
CONDITIONAL_OR_EXPRESSION
public ExpressionTree CONDITIONAL_OR_EXPRESSION()
-
CONDITIONAL_AND_EXPRESSION
public ExpressionTree CONDITIONAL_AND_EXPRESSION()
-
INCLUSIVE_OR_EXPRESSION
public ExpressionTree INCLUSIVE_OR_EXPRESSION()
-
EXCLUSIVE_OR_EXPRESSION
public ExpressionTree EXCLUSIVE_OR_EXPRESSION()
-
AND_EXPRESSION
public ExpressionTree AND_EXPRESSION()
-
EQUALITY_EXPRESSION
public ExpressionTree EQUALITY_EXPRESSION()
-
INSTANCEOF_EXPRESSION
public ExpressionTree INSTANCEOF_EXPRESSION()
-
RELATIONAL_EXPRESSION
public ExpressionTree RELATIONAL_EXPRESSION()
-
SHIFT_EXPRESSION
public ExpressionTree SHIFT_EXPRESSION()
-
ADDITIVE_EXPRESSION
public ExpressionTree ADDITIVE_EXPRESSION()
-
MULTIPLICATIVE_EXPRESSION
public ExpressionTree MULTIPLICATIVE_EXPRESSION()
-
UNARY_EXPRESSION
public ExpressionTree UNARY_EXPRESSION()
-
UNARY_EXPRESSION_NOT_PLUS_MINUS
public ExpressionTree UNARY_EXPRESSION_NOT_PLUS_MINUS()
-
PRIMARY_WITH_SELECTOR
public ExpressionTree PRIMARY_WITH_SELECTOR()
-
CAST_EXPRESSION
public ExpressionTree CAST_EXPRESSION()
-
METHOD_REFERENCE
public ExpressionTree METHOD_REFERENCE()
-
PRIMARY
public ExpressionTree PRIMARY()
-
LAMBDA_EXPRESSION
public ExpressionTree LAMBDA_EXPRESSION()
-
LAMBDA_PARAMETERS
public LambdaParameterListTreeImpl LAMBDA_PARAMETERS()
-
MULTIPLE_INFERED_PARAMETERS
public LambdaParameterListTreeImpl MULTIPLE_INFERED_PARAMETERS()
-
INFERED_PARAMETER
public VariableTreeImpl INFERED_PARAMETER()
-
LAMBDA_BODY
public Tree LAMBDA_BODY()
-
PARENTHESIZED_EXPRESSION
public ParenthesizedTreeImpl PARENTHESIZED_EXPRESSION()
-
NEW_EXPRESSION
public ExpressionTree NEW_EXPRESSION()
-
CREATOR
public ExpressionTree CREATOR()
-
ARRAY_CREATOR_REST
public NewArrayTreeImpl ARRAY_CREATOR_REST()
-
BASIC_CLASS_EXPRESSION
public ExpressionTree BASIC_CLASS_EXPRESSION()
-
BASIC_TYPE
public JavaTree.PrimitiveTypeTreeImpl BASIC_TYPE()
-
ARGUMENTS
public ArgumentListTreeImpl ARGUMENTS()
-
QUALIFIED_IDENTIFIER
public <T extends Tree> T QUALIFIED_IDENTIFIER()
-
ANNOTATED_PARAMETERIZED_IDENTIFIER
public ExpressionTree ANNOTATED_PARAMETERIZED_IDENTIFIER()
-
VARIABLE_INITIALIZER
public ExpressionTree VARIABLE_INITIALIZER()
-
ARRAY_INITIALIZER
public NewArrayTreeImpl ARRAY_INITIALIZER()
-
QUALIFIED_IDENTIFIER_LIST
public QualifiedIdentifierListTreeImpl QUALIFIED_IDENTIFIER_LIST()
-
ARRAY_ACCESS_EXPRESSION
public ArrayAccessExpressionTreeImpl ARRAY_ACCESS_EXPRESSION()
-
CLASS_CREATOR_REST
public NewClassTreeImpl CLASS_CREATOR_REST()
-
ANNOTATED_DIMENSION
public TreeFactory.Tuple<com.sonar.sslr.api.typed.Optional<List<AnnotationTreeImpl>>,TreeFactory.Tuple<InternalSyntaxToken,InternalSyntaxToken>> ANNOTATED_DIMENSION()
-
DIMENSION
public TreeFactory.Tuple<InternalSyntaxToken,InternalSyntaxToken> DIMENSION()
-
SELECTOR
public TreeFactory.Tuple<com.sonar.sslr.api.typed.Optional<InternalSyntaxToken>,ExpressionTree> SELECTOR()
-
IDENTIFIER_OR_METHOD_INVOCATION
public ExpressionTree IDENTIFIER_OR_METHOD_INVOCATION()
-
-