Package org.mvel2.util
Class ProtoParser
java.lang.Object
org.mvel2.util.ProtoParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static ThreadLocal
<Queue<ProtoParser.DeferredTypeResolve>> private String
private int
private char[]
private boolean
private String
private ParserContext
private String
private ExecutionStack
(package private) String
(package private) String
private Class
-
Constructor Summary
ConstructorsConstructorDescriptionProtoParser
(char[] expr, int offset, int offsetEnd, String protoName, ParserContext pCtx, int fields, ExecutionStack splitAccumulator) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
static void
checkForPossibleUnresolvedViolations
(char[] expr, int cursor, ParserContext pCtx) This is such a horrible hack, but it's more performant than any other horrible hack I can think of right now.private void
enqueueReceiverForLateResolution
(String name, Proto.Receiver receiver, String initializer) int
static String
static boolean
static void
notifyForLateResolution
(Proto proto) parse()
-
Field Details
-
Constructor Details
-
ProtoParser
public ProtoParser(char[] expr, int offset, int offsetEnd, String protoName, ParserContext pCtx, int fields, ExecutionStack splitAccumulator)
-
-
Method Details
-
parse
-
calculateDecl
private void calculateDecl() -
enqueueReceiverForLateResolution
private void enqueueReceiverForLateResolution(String name, Proto.Receiver receiver, String initializer) -
notifyForLateResolution
-
getCursor
public int getCursor() -
checkForPossibleUnresolvedViolations
public static void checkForPossibleUnresolvedViolations(char[] expr, int cursor, ParserContext pCtx) This is such a horrible hack, but it's more performant than any other horrible hack I can think of right now.- Parameters:
expr
- exprcursor
- cursorpCtx
- pCtx
-
isUnresolvedWaiting
public static boolean isUnresolvedWaiting() -
getNextUnresolvedWaiting
-