@Override public void handleStateMachineMatchedToken(final CodeAttribute c) { c.aload(PARSE_STATE_VAR); c.swap(); c.putfield(parseStateClass, "nextHeader", HTTP_STRING_DESCRIPTOR); }
@Override public void handleOtherToken(final CodeAttribute c) { c.aload(PARSE_STATE_VAR); c.swap(); c.putfield(PARSE_STATE_CLASS, "nextHeader", HTTP_STRING_DESCRIPTOR); }
@Override public void handleStateMachineMatchedToken(final CodeAttribute c) { c.aload(PARSE_STATE_VAR); c.swap(); c.putfield(PARSE_STATE_CLASS, "nextHeader", HTTP_STRING_DESCRIPTOR); }
@Override public void updateParseState(final CodeAttribute c) { c.pop(); c.aload(PARSE_STATE_VAR); c.iconst(HEADER_VALUE); c.putfield(parseStateClass, "state", "I"); }
@Override public void updateParseState(final CodeAttribute c) { c.pop(); c.aload(PARSE_STATE_VAR); c.iconst(PATH); c.putfield(parseStateClass, "state", "I"); }
@Override public void updateParseState(final CodeAttribute c) { c.pop(); c.aload(PARSE_STATE_VAR); c.iconst(HEADER_VALUE); c.putfield(PARSE_STATE_CLASS, "state", "I"); }
@Override public void handleOtherToken(final CodeAttribute c) { c.aload(PARSE_STATE_VAR); c.swap(); c.dup(); c.invokestatic(CONNECTORS_CLASS, "verifyToken", "(" + HTTP_STRING_DESCRIPTOR + ")V"); c.putfield(parseStateClass, "nextHeader", HTTP_STRING_DESCRIPTOR); }
c.aload(PARSE_STATE_VAR); c.iconst(0); c.putfield(parseStateClass, "leftOver", "B");
c.putfield(parseStateClass, "pos", "I"); c.aload(STATE_CURRENT_VAR); c.putfield(parseStateClass, "current", HTTP_STRING_DESCRIPTOR); c.aload(STATE_CURRENT_BYTES_VAR); c.putfield(parseStateClass, "currentBytes", "[B"); c.iload(CURRENT_STATE_VAR); c.putfield(parseStateClass, "parseState", "I"); c.returnInstruction(); setupLocalVariables(c); c.putfield(parseStateClass, "pos", "I"); c.aconstNull(); c.putfield(parseStateClass, "current", HTTP_STRING_DESCRIPTOR); c.aconstNull(); c.putfield(parseStateClass, "currentBytes", "[B"); c.aload(STATE_STRING_BUILDER_VAR); c.iconst(0); c.invokevirtual(StringBuilder.class.getName(), "setLength", "(I)V"); c.iconst(0); c.putfield(parseStateClass, "parseState", "I"); c.returnInstruction(); c.putfield(parseStateClass, "parseState", "I"); c.iconst(0); c.returnInstruction();
public void putfield(String className, String field, Class<?> fieldType) { putfield(className, field, DescriptorUtils.makeDescriptor(fieldType)); }
public void putfield(String className, String field, Class<?> fieldType) { putfield(className, field, DescriptorUtils.makeDescriptor(fieldType)); }
public void putfield(String className, String field, Class<?> fieldType) { putfield(className, field, DescriptorUtils.makeDescriptor(fieldType)); }
protected void generateSetMethodHandlerBody(ClassMethod method) { final CodeAttribute b = method.getCodeAttribute(); b.aload(0); b.aload(1); b.checkcast(getMethodHandlerType()); b.putfield(method.getClassFile().getName(), METHOD_HANDLER_FIELD_NAME, DescriptorUtils.makeDescriptor(getMethodHandlerType())); b.returnInstruction(); }
protected void generateSetMethodHandlerBody(ClassMethod method) { final CodeAttribute b = method.getCodeAttribute(); b.aload(0); b.aload(1); b.checkcast(getMethodHandlerType()); b.putfield(method.getClassFile().getName(), METHOD_HANDLER_FIELD_NAME, DescriptorUtils.makeDescriptor(getMethodHandlerType())); b.returnInstruction(); }
protected void generateSetMethodHandlerBody(ClassMethod method) { final CodeAttribute b = method.getCodeAttribute(); b.aload(0); b.aload(1); b.checkcast(getMethodHandlerType()); b.putfield(method.getClassFile().getName(), METHOD_HANDLER_FIELD_NAME, DescriptorUtils.makeDescriptor(getMethodHandlerType())); b.returnInstruction(); }
protected void generateSetMethodHandlerBody(ClassMethod method) { final CodeAttribute b = method.getCodeAttribute(); b.aload(0); b.aload(1); b.checkcast(getMethodHandlerType()); b.putfield(method.getClassFile().getName(), METHOD_HANDLER_FIELD_NAME, DescriptorUtils.makeDescriptor(getMethodHandlerType())); b.returnInstruction(); }
protected void generateSetMethodHandlerBody(ClassMethod method) { final CodeAttribute b = method.getCodeAttribute(); b.aload(0); b.aload(1); b.checkcast(getMethodHandlerType()); b.putfield(method.getClassFile().getName(), METHOD_HANDLER_FIELD_NAME, DescriptorUtils.makeDescriptor(getMethodHandlerType())); b.returnInstruction(); }
protected void generateSetMethodHandlerBody(ClassMethod method) { final CodeAttribute b = method.getCodeAttribute(); b.aload(0); b.aload(1); b.checkcast(getMethodHandlerType()); b.putfield(method.getClassFile().getName(), METHOD_HANDLER_FIELD_NAME, DescriptorUtils.makeDescriptor(getMethodHandlerType())); b.returnInstruction(); }