private void preprocessBytefieldsDef(String name, long id) throws IOException { int i = workspacesDefinedCount; while (--i>=0) { if (id == workspacesDefined[i]) { return; //already defined } } appendWorkspaceName(appendClass(bodyTarget.append("private "), DataInputBlobReader.class, schemaClass).append(" "),id).append(";\n"); //.append(" = new "); //appendClass(bodyTarget, DataInputBlobReader.class, schemaClass).append("(").append(pipeVarName).append(");\n"); workspacesDefined[workspacesDefinedCount++] = id; }
private void preprocessBytefieldsAssign(String name, long id) throws IOException { int i = workspacesDefinedCount; while (--i>=0) { if (id == workspacesDefined[i]) { return; //already defined } } appendClass(appendWorkspaceName(bodyTarget.append(tab),id).append(" = new "), DataInputBlobReader.class, schemaClass).append("(").append(pipeVarName).append(");\n"); workspacesDefined[workspacesDefinedCount++] = id; }
private void preprocessBytefieldsDef(String name, long id) throws IOException { int i = workspacesDefinedCount; while (--i>=0) { if (id == workspacesDefined[i]) { return; //already defined } } appendWorkspaceName(appendClass(bodyTarget.append("private "), DataInputBlobReader.class, schemaClass).append(" "),id).append(";\n"); //.append(" = new "); //appendClass(bodyTarget, DataInputBlobReader.class, schemaClass).append("(").append(pipeVarName).append(");\n"); workspacesDefined[workspacesDefinedCount++] = id; }
private void preprocessBytefieldsAssign(String name, long id) throws IOException { int i = workspacesDefinedCount; while (--i>=0) { if (id == workspacesDefined[i]) { return; //already defined } } appendClass(appendWorkspaceName(bodyTarget.append(tab),id).append(" = new "), DataInputBlobReader.class, schemaClass).append("(").append(pipeVarName).append(");\n"); workspacesDefined[workspacesDefinedCount++] = id; }
private void preprocessBytefieldsDef(String name, long id) throws IOException { int i = workspacesDefinedCount; while (--i>=0) { if (id == workspacesDefined[i]) { return; //already defined } } appendWorkspaceName(appendClass(bodyTarget.append("private "), DataInputBlobReader.class, schemaClass).append(" "),id).append(";\n"); //.append(" = new "); //appendClass(bodyTarget, DataInputBlobReader.class, schemaClass).append("(").append(pipeVarName).append(");\n"); workspacesDefined[workspacesDefinedCount++] = id; }
private void preprocessBytefieldsAssign(String name, long id) throws IOException { int i = workspacesDefinedCount; while (--i>=0) { if (id == workspacesDefined[i]) { return; //already defined } } appendClass(appendWorkspaceName(bodyTarget.append(tab),id).append(" = new "), DataInputBlobReader.class, schemaClass).append("(").append(pipeVarName).append(");\n"); workspacesDefined[workspacesDefinedCount++] = id; }
protected void defineMembers() throws IOException { final FieldReferenceOffsetManager from = MessageSchema.from(schema); if (!from.hasSimpleMessagesOnly) { bodyTarget.append("private ").append(LowLevelStateManager.class.getSimpleName()).append(" navState;\n"); } if (buildFullStageWritingToPipe()) { appendClass(bodyTarget.append("private "), pipeClass, schema.getClass()).append(pipeVarName).append(";\n"); } additionalMembers(bodyTarget); from.appendConstuctionSource(bodyTarget); }
@Override protected void buildConstructors(Appendable target, String className) throws IOException { target.append("public ").append(className).append("("); if (generateRunnable) { target.append(") { \n"); FieldReferenceOffsetManager from = MessageSchema.from(schema); if (!from.hasSimpleMessagesOnly) { target.append(tab).append("startup();\n"); } } else { target.append(GraphManager.class.getCanonicalName()).append(" gm, "); Appendables.appendClass(target, Pipe.class, schema.getClass()).append(" ").append(pipeVarName).append(") {\n"); target.append("super(gm,NONE,").append(pipeVarName).append(");\n"); target.append("this.").append(pipeVarName).append(" = ").append(pipeVarName).append(";\n"); Appendables.appendStaticCall(target, Pipe.class, "from").append(pipeVarName).append(").validateGUID(FROM_GUID);\n"); } target.append("}\n\n"); }
protected void defineMembers() throws IOException { final FieldReferenceOffsetManager from = MessageSchema.from(schema); if (!from.hasSimpleMessagesOnly) { bodyTarget.append("private ").append(LowLevelStateManager.class.getSimpleName()).append(" navState;\n"); } if (buildFullStageWritingToPipe()) { appendClass(bodyTarget.append("private "), pipeClass, schema.getClass()).append(pipeVarName).append(";\n"); } additionalMembers(bodyTarget); from.appendConstuctionSource(bodyTarget); }
protected void defineMembers() throws IOException { final FieldReferenceOffsetManager from = MessageSchema.from(schema); if (!from.hasSimpleMessagesOnly) { bodyTarget.append("private ").append(LowLevelStateManager.class.getSimpleName()).append(" navState;\n"); } if (buildFullStageWritingToPipe()) { appendClass(bodyTarget.append("private "), pipeClass, schema.getClass()).append(pipeVarName).append(";\n"); } additionalMembers(bodyTarget); from.appendConstuctionSource(bodyTarget); }
target.append(GraphManager.class.getCanonicalName()).append(" gm, "); target.append("Pipe<RawDataSchema> " + inPipeName + ", "); Appendables.appendClass(target, Pipe.class, schema.getClass()).append(" ").append(pipeVarName); additionalArgs(target); target.append(") {\n");
bodyTarget.append("private LowLevelStateManager navState;\n"); appendClass(bodyTarget.append("private "), pipeClass, schema.getClass()).append(pipeVarName).append(";\n");
bodyTarget.append("private LowLevelStateManager navState;\n"); appendClass(bodyTarget.append("private "), pipeClass, schema.getClass()).append(pipeVarName).append(";\n");
bodyTarget.append("private LowLevelStateManager navState;\n"); appendClass(bodyTarget.append("private "), pipeClass, schema.getClass()).append(pipeVarName).append(";\n");