Class ProtoParser
java.lang.Object
org.mvel2.util.ProtoParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static ThreadLocal<Queue<ProtoParser.DeferredTypeResolve>> private Stringprivate intprivate char[]private booleanprivate Stringprivate ParserContextprivate Stringprivate ExecutionStack(package private) String(package private) Stringprivate Class -
Constructor Summary
ConstructorsConstructorDescriptionProtoParser(char[] expr, int offset, int offsetEnd, String protoName, ParserContext pCtx, int fields, ExecutionStack splitAccumulator) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidstatic voidcheckForPossibleUnresolvedViolations(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 voidenqueueReceiverForLateResolution(String name, Proto.Receiver receiver, String initializer) intstatic Stringstatic booleanstatic voidnotifyForLateResolution(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
-