private void rewriteClassReferenceToFQCN(int fields) { String FQCN = egressType.getName(); if (typeDescr.getClassName().indexOf('.') == -1) { int idx = ArrayTools.findFirst('(', 0, name.length, name); char[] fqcn = FQCN.toCharArray(); if (idx == -1) { this.name = new char[idx = fqcn.length]; for (int i = 0; i < idx; i++) this.name[i] = fqcn[i]; } else { char[] newName = new char[fqcn.length + (name.length - idx)]; for (int i = 0; i < fqcn.length; i++) newName[i] = fqcn[i]; int i0 = name.length - idx; int i1 = fqcn.length; for (int i = 0; i < i0; i++) newName[i + i1] = name[i + idx]; this.name = newName; } this.typeDescr.updateClassName(name, 0, name.length, fields); } }
private void rewriteClassReferenceToFQCN(int fields) { String FQCN = egressType.getName(); if (typeDescr.getClassName().indexOf('.') == -1) { int idx = ArrayTools.findFirst('(', 0, name.length, name); char[] fqcn = FQCN.toCharArray(); if (idx == -1) { this.name = new char[idx = fqcn.length]; for (int i = 0; i < idx; i++) this.name[i] = fqcn[i]; } else { char[] newName = new char[fqcn.length + (name.length - idx)]; for (int i = 0; i < fqcn.length; i++) newName[i] = fqcn[i]; int i0 = name.length - idx; int i1 = fqcn.length; for (int i = 0; i < i0; i++) newName[i + i1] = name[i + idx]; this.name = newName; } this.typeDescr.updateClassName(name, 0, name.length, fields); } }
private void rewriteClassReferenceToFQCN(int fields) { String FQCN = egressType.getName(); if (typeDescr.getClassName().indexOf('.') == -1) { int idx = ArrayTools.findFirst('(', name); char[] fqcn = FQCN.toCharArray(); if (idx == -1) { this.name = new char[idx = fqcn.length]; for (int i = 0; i < idx; i++) this.name[i] = fqcn[i]; } else { char[] newName = new char[fqcn.length + (name.length - idx)]; for (int i = 0; i < fqcn.length; i++) newName[i] = fqcn[i]; int i0 = name.length - idx; int i1 = fqcn.length; for (int i = 0; i < i0; i++) newName[i + i1] = name[i + idx]; this.name = newName; } this.typeDescr.updateClassName(name, fields); } }
public AssignmentNode(char[] expr, int fields, ParserContext pCtx) { this.name = expr; int assignStart; if ((assignStart = find(expr, '=')) != -1) { this.varName = createStringTrimmed(expr, 0, assignStart); stmt = subset(expr, assignStart + 1); if ((fields & COMPILE_IMMEDIATE) != 0) { this.egressType = (statement = (ExecutableStatement) subCompileExpression(stmt, pCtx)).getKnownEgressType(); } if (col = ((endOfName = findFirst('[', indexTarget = this.varName.toCharArray())) > 0)) { if (((this.fields |= COLLECTION) & COMPILE_IMMEDIATE) != 0) { accExpr = (CompiledAccExpression) compileSetExpression(indexTarget, pCtx); } this.varName = new String(expr, 0, endOfName); index = new String(indexTarget, endOfName, indexTarget.length - endOfName); } checkNameSafety(this.varName); } else { checkNameSafety(this.varName = new String(expr)); } if ((fields & COMPILE_IMMEDIATE) != 0) { pCtx.addVariable(this.varName, egressType); } this.name = this.varName.toCharArray(); }
String s = new String(subset(expression, 0, ArrayTools.findFirst('(', start, length, expression))); Class cls = ParseTools.findClass(vars, s, pCtx);
String s = new String(subset(expression, 0, ArrayTools.findFirst('(', start, length, expression))); Class cls = ParseTools.findClass(vars, s, pCtx);
Class cls = findClass(factory, new String(subset(name, 0, findFirst('(', 0, name.length, name))).trim(), pCtx);
if (col = ((endOfName = findFirst('[', 0, this.varName.length(), indexTarget = this.varName.toCharArray())) > 0)) { if (((this.fields |= COLLECTION) & COMPILE_IMMEDIATE) != 0) { accExpr = (CompiledAccExpression) compileSetExpression(indexTarget, pCtx);
Class cls = findClass(factory, new String(subset(name, 0, findFirst('(', name))), null);
Class cls = findClass(factory, new String(subset(name, 0, findFirst('(', 0, name.length, name))).trim(), pCtx);
if (col = ((endOfName = findFirst('[', 0, this.varName.length(), indexTarget = this.varName.toCharArray())) > 0)) { if (((this.fields |= COLLECTION) & COMPILE_IMMEDIATE) != 0) { accExpr = (CompiledAccExpression) compileSetExpression(indexTarget, pCtx);
int offset; if ((offset = findFirst('.', _subset)) != -1) { String iStr = new String(_subset, 0, offset); if (pCtx.hasImport(iStr)) {
int find; if ((find = findFirst('.', st, end - st, expr)) != -1) { String iStr = new String(expr, st, find - st); if (pCtx.hasImport(iStr)) {
int find; if ((find = findFirst('.', st, end - st, expr)) != -1) { String iStr = new String(expr, st, find - st); if (pCtx.hasImport(iStr)) {
.getKnownEgressType(); if (col = ((endOfName = (short) findFirst('[', 0, this.name.length(), indexTarget = this.name.toCharArray())) > 0)) { if (((this.fields |= COLLECTION) & COMPILE_IMMEDIATE) != 0) { accExpr = (CompiledAccExpression) compileSetExpression(indexTarget, pCtx);
public IndexedAssignmentNode(char[] expr, int fields, int operation, String name, int register, ParserContext pCtx) { super.name = expr; this.register = register; int assignStart; if (operation != -1) { checkNameSafety(this.name = name); this.egressType = (statement = (ExecutableStatement) subCompileExpression(stmt = createShortFormOperativeAssignment(name, expr, operation), pCtx)).getKnownEgressType(); } else if ((assignStart = find(expr, '=')) != -1) { this.name = createStringTrimmed(expr, 0, assignStart); this.egressType = (statement = (ExecutableStatement) subCompileExpression(stmt = subset(expr, assignStart + 1), pCtx)) .getKnownEgressType(); if (col = ((endOfName = (short) findFirst('[', indexTarget = this.name.toCharArray())) > 0)) { if (((this.fields |= COLLECTION) & COMPILE_IMMEDIATE) != 0) { accExpr = (CompiledAccExpression) compileSetExpression(indexTarget, pCtx); } this.name = new String(expr, 0, endOfName); index = subset(indexTarget, endOfName, indexTarget.length - endOfName); } checkNameSafety(this.name); } else { checkNameSafety(this.name = new String(expr)); } if ((fields & COMPILE_IMMEDIATE) != 0) { pCtx.addVariable(name, egressType); } }
.getKnownEgressType(); if (col = ((endOfName = (short) findFirst('[', 0, this.name.length(), indexTarget = this.name.toCharArray())) > 0)) { if (((this.fields |= COLLECTION) & COMPILE_IMMEDIATE) != 0) { accExpr = (CompiledAccExpression) compileSetExpression(indexTarget, pCtx);