public class PropertyAccessor extends AbstractParser
CLASS_LITERALS, compileMode, cursor, debugSymbols, dStack, end, expr, fields, GET, GET_OR_CREATE, greedy, lastLineStart, lastNode, lastWasComment, lastWasIdentifier, lastWasLineLabel, LEVEL_0_PROPERTY_ONLY, LEVEL_1_BASIC_LANG, LEVEL_2_MULTI_STATEMENT, LEVEL_3_ITERATION, LEVEL_4_ASSIGNMENT, LEVEL_5_CONTROL_FLOW, line, literalOnly, LITERALS, OP_CONTINUE, OP_OVERFLOW, OP_RESET_FRAME, OP_TERMINATE, OPERATORS, parserContext, REMOVE, SET, splitAccumulator, st, start, stk| Constructor and Description |
|---|
PropertyAccessor(char[] property,
int start,
int offset,
Object ctx,
VariableResolverFactory resolver,
Object thisReference,
ParserContext pCtx) |
PropertyAccessor(char[] property,
Object ctx,
VariableResolverFactory resolver,
Object thisReference,
ParserContext pCtx) |
PropertyAccessor(String property,
Object ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionOnErrorAccessingCollectionAccessor(RuntimeException e) |
static Class[] |
checkParmTypesCache(Method member) |
static void |
clearPropertyResolverCache() |
static Object |
get(char[] property,
int offset,
int end,
Object ctx,
VariableResolverFactory resolver,
Object thisReferece,
ParserContext pCtx) |
static Object |
get(String property,
Object ctx) |
static Object |
get(String property,
Object ctx,
VariableResolverFactory resolver,
Object thisReference,
ParserContext pCtx) |
protected char[] |
getExpressionForCollectionAccesor() |
static void |
reportCacheSizes() |
static void |
set(Object ctx,
String property,
Object value) |
static void |
set(Object ctx,
VariableResolverFactory resolver,
String property,
Object value,
ParserContext pCtx) |
protected int |
trimLeft(int pos)
From the specified cursor position, trim out any whitespace between the current position and the end of the
last non-whitespace character.
|
protected Object |
tryStaticAccess()
Try static access of the property, and return an instance of the Field, Method of Class if successful.
|
addFatalError, addFatalError, arithmeticFunctionReduction, captureIdentifier, captureToEOS, captureToEOSorEOL, captureToEOT, captureToNextTokenJunction, contextControl, expectEOS, expectNextChar_IW, getCurrentThreadParserContext, getCursor, getExpression, getParserContext, handleSubstatement, handleUnion, ifThenElseBlockContinues, incNextNonBlank, isArithmeticOperator, isNextIdentifier, isNextIdentifierOrLiteral, isStatementNotManuallyTerminated, lastNonWhite, loadLanguageFeaturesByLevel, lookAhead, lookAhead, lookBehind, lookToLast, newContext, newContext, nextNonBlank, nextToken, nextTokenSkipSymbols, reduce, removeContext, resetParserContext, scanCollectionAccessor, scanTo, setCurrentThreadParserContext, setExpression, setExpression, setLanguageLevel, setPCtx, setupParser, skipWhitespace, tokenContinues, trimRight, trimWhitespacepublic PropertyAccessor(char[] property,
Object ctx,
VariableResolverFactory resolver,
Object thisReference,
ParserContext pCtx)
public PropertyAccessor(char[] property,
int start,
int offset,
Object ctx,
VariableResolverFactory resolver,
Object thisReference,
ParserContext pCtx)
public static Object get(char[] property, int offset, int end, Object ctx, VariableResolverFactory resolver, Object thisReferece, ParserContext pCtx)
public static Object get(String property, Object ctx, VariableResolverFactory resolver, Object thisReference, ParserContext pCtx)
public static void set(Object ctx, VariableResolverFactory resolver, String property, Object value, ParserContext pCtx)
protected int trimLeft(int pos)
AbstractParsertrimLeft in class AbstractParserpos - - current positionpublic static void clearPropertyResolverCache()
public static void reportCacheSizes()
protected char[] getExpressionForCollectionAccesor()
getExpressionForCollectionAccesor in class AbstractParserprotected void actionOnErrorAccessingCollectionAccessor(RuntimeException e)
actionOnErrorAccessingCollectionAccessor in class AbstractParserprotected Object tryStaticAccess()
Copyright © 2022. All rights reserved.