public ExpressionNode(int begin, String name, char[] template, int start, int end, Node next) { this.name = name; this.begin = begin; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); this.next = next; }
public EvalNode(int begin, String name, char[] template, int start, int end) { this.begin = begin; this.name = name; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); }
public CodeNode(int begin, String name, char[] template, int start, int end, Node next) { this.name = name; this.begin = begin; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); this.next = next; }
public EvalNode(int begin, String name, char[] template, int start, int end, Node next) { this.name = name; this.begin = begin; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); this.next = next; }
public Node(int begin, String name, char[] template, int start, int end) { this.begin = begin; this.name = name; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); }
public CodeNode(int begin, String name, char[] template, int start, int end) { this.begin = begin; this.name = name; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); }
public TerminalExpressionNode(int begin, String name, char[] template, int start, int end, Node next) { this.name = name; this.begin = begin; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); this.next = next; }
public NamedIncludeNode(int begin, String name, char[] template, int start, int end) { this.begin = begin; this.name = name; this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1); int mark; this.includeExpression = subset(contents, 0, mark = captureToEOS(contents, 0)); if (mark != contents.length) this.preExpression = subset(contents, ++mark, contents.length - mark); }
@Override public void setContents(final char[] contents) { int mark; this.includeExpression = ParseTools.subset(contents, 0, mark = TemplateTools.captureToEOS(contents, 0)); if (mark != contents.length) this.preExpression = ParseTools.subset(contents, ++mark, contents.length - mark); setup(); this.contents = contents; }
public CompiledDeclareNode(int begin, String name, char[] template, int start, int end) { this.begin = begin; this.name = name; ce = MVEL.compileExpression(this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1)); }
public CompiledCodeNode(int begin, String name, char[] template, int start, int end, Node next) { this.name = name; this.begin = begin; ce = MVEL.compileExpression(this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1)); this.next = next; }
public CompiledExpressionNode(int begin, String name, char[] template, int start, int end, Node next) { this.name = name; this.begin = begin; ce = MVEL.compileExpression(this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1)); this.next = next; }
public CompiledEvalNode(int begin, String name, char[] template, int start, int end) { this.begin = begin; this.name = name; ce = MVEL.compileExpression(this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1)); }
public CompiledTerminalExpressionNode(int begin, String name, char[] template, int start, int end) { this.begin = begin; this.name = name; ce = MVEL.compileExpression(this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1)); }
public CompiledTerminalExpressionNode(int begin, String name, char[] template, int start, int end, Node next) { this.name = name; this.begin = begin; ce = MVEL.compileExpression(this.contents = subset(template, this.cStart = start, (this.end = this.cEnd = end) - start - 1)); this.next = next; }
@Override public void setContents(char[] contents) { super.setContents(contents); int mark; cIncludeExpression = MVEL.compileExpression(subset(contents, 0, mark = captureToEOS(contents, 0))); if (mark != contents.length) cPreExpression = MVEL.compileExpression(subset(contents, ++mark, contents.length - mark)); }
private Class getWithProperty(Class ctx) { String root = new String(expr, 0, cursor - 1).trim(); int start = cursor + 1; cursor = balancedCaptureWithLineAccounting(expr, cursor, '{', pCtx); new WithAccessor(root, subset(expr, start, cursor++ - start), ctx, pCtx.isStrictTypeEnforcement()); return ctx; }
@Override public void setContents(char[] contents) { super.setContents(contents); int mark; cIncludeExpression = MVEL.compileExpression(subset(contents, 0, mark = captureToEOS(contents, 0))); if (mark != contents.length) cPreExpression = MVEL.compileExpression(subset(contents, ++mark, contents.length - mark)); }
private Object getWithProperty(Object ctx) { String root = new String(expr, 0, cursor - 1).trim(); int start = cursor + 1; cursor = balancedCaptureWithLineAccounting(expr, cursor, '{', pCtx); WithAccessor wa = new WithAccessor(root, subset(expr, start, cursor++ - start), ingressType, false); addAccessorNode(wa); return wa.getValue(ctx, thisRef, variableFactory); }
private void parseGraph(boolean compile, Class type, ParserContext pCtx) { CollectionParser parser = new CollectionParser(); if (type == null) { collectionGraph = ((List) parser.parseCollection(name, compile, pCtx)).get(0); } else { collectionGraph = ((List) parser.parseCollection(name, compile, type, pCtx)).get(0); } if (parser.getCursor() + 2 < name.length) trailing = subset(name, parser.getCursor() + 2); if (this.egressType == null) this.egressType = collectionGraph.getClass(); }