Interface ParseStart<R>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ParseStart<R>
    The start production for JavaParser. Tells JavaParser what piece of Java code it can expect. For example, COMPILATION_UNIT indicates a complete Java file, and CLASS_BODY would indicate the part of a class that is within { and }.
    See Also:
    MvelParser#parse(ParseStart, Provider)
    • Field Detail

      • BLOCK

        static final ParseStart<com.github.javaparser.ast.stmt.BlockStmt> BLOCK
      • EXPRESSION

        static final ParseStart<com.github.javaparser.ast.expr.Expression> EXPRESSION
      • CLASS_OR_INTERFACE_TYPE

        static final ParseStart<com.github.javaparser.ast.type.ClassOrInterfaceType> CLASS_OR_INTERFACE_TYPE
      • TYPE

        static final ParseStart<com.github.javaparser.ast.type.Type> TYPE
      • EXPLICIT_CONSTRUCTOR_INVOCATION_STMT

        static final ParseStart<com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt> EXPLICIT_CONSTRUCTOR_INVOCATION_STMT
      • NAME

        static final ParseStart<com.github.javaparser.ast.expr.Name> NAME
      • SIMPLE_NAME

        static final ParseStart<com.github.javaparser.ast.expr.SimpleName> SIMPLE_NAME
      • COMPILATION_UNIT

        static final ParseStart<com.github.javaparser.ast.CompilationUnit> COMPILATION_UNIT
      • DRLX_COMPILATION_UNIT

        static final ParseStart<com.github.javaparser.ast.CompilationUnit> DRLX_COMPILATION_UNIT
    • Method Detail

      • parse

        R parse​(org.drools.mvel.parser.GeneratedMvelParser parser)
         throws com.github.javaparser.ParseException,
                ParseException
        Throws:
        com.github.javaparser.ParseException