public abstract class AbstractParserGenerator extends Object
Modifier and Type | Class and Description |
---|---|
static interface | AbstractParserGenerator.CustomStateMachine A class that separates out the different behaviour of the three state machines (VERB, VERSION and HEADER) |
Modifier and Type | Field and Description |
---|---|
protected static int | BYTE_BUFFER_VAR |
static String | CLASS_NAME_SUFFIX |
protected String | constructorDescriptor |
protected static int | CURRENT_STATE_VAR |
static String | HANDLE_AFTER_VERSION |
static String | HANDLE_HEADER |
static String | HANDLE_HEADER_VALUE |
static String | HANDLE_HTTP_VERB |
static String | HANDLE_HTTP_VERSION |
static String | HANDLE_PATH |
protected static int | HTTP_RESULT |
static String | HTTP_STRING_CLASS |
static String | HTTP_STRING_DESCRIPTOR |
static int | NO_STATE |
protected static int | PARSE_STATE_VAR |
protected String | parseStateClass |
static int | PREFIX_MATCH |
protected String | resultClass |
protected static int | STATE_CURRENT_BYTES_VAR |
protected static int | STATE_CURRENT_VAR |
protected static int | STATE_POS_VAR |
protected static int | STATE_STRING_BUILDER_VAR |
Constructor and Description |
---|
AbstractParserGenerator(String parseStateClass, String resultClass, String constructorDescriptor, String existingClassName) |
Modifier and Type | Method and Description |
---|---|
protected void | createStateMachine(String[] originalItems, String className, org.jboss.classfilewriter.ClassFile file, org.jboss.classfilewriter.ClassMethod sctor, AtomicInteger fieldCounter, String methodName, AbstractParserGenerator.CustomStateMachine stateMachine) |
protected abstract void | createStateMachines(String[] httpVerbs, String[] httpVersions, String[] standardHeaders, String className, org.jboss.classfilewriter.ClassFile file, org.jboss.classfilewriter.ClassMethod sctor, AtomicInteger fieldCounter) |
byte[] | createTokenizer(String[] httpVerbs, String[] httpVersions, String[] standardHeaders) |
protected final String parseStateClass
protected String resultClass
protected final String constructorDescriptor
public static final String HTTP_STRING_CLASS
public static final String HTTP_STRING_DESCRIPTOR
public static final int NO_STATE
public static final int PREFIX_MATCH
protected static final int BYTE_BUFFER_VAR
protected static final int PARSE_STATE_VAR
protected static final int HTTP_RESULT
protected static final int CURRENT_STATE_VAR
protected static final int STATE_POS_VAR
protected static final int STATE_CURRENT_VAR
protected static final int STATE_STRING_BUILDER_VAR
protected static final int STATE_CURRENT_BYTES_VAR
public static final String HANDLE_HTTP_VERB
public static final String HANDLE_PATH
public static final String HANDLE_HTTP_VERSION
public static final String HANDLE_AFTER_VERSION
public static final String HANDLE_HEADER
public static final String HANDLE_HEADER_VALUE
public static final String CLASS_NAME_SUFFIX
public byte[] createTokenizer(String[] httpVerbs, String[] httpVersions, String[] standardHeaders)
protected abstract void createStateMachines(String[] httpVerbs, String[] httpVersions, String[] standardHeaders, String className, org.jboss.classfilewriter.ClassFile file, org.jboss.classfilewriter.ClassMethod sctor, AtomicInteger fieldCounter)
protected void createStateMachine(String[] originalItems, String className, org.jboss.classfilewriter.ClassFile file, org.jboss.classfilewriter.ClassMethod sctor, AtomicInteger fieldCounter, String methodName, AbstractParserGenerator.CustomStateMachine stateMachine)
Copyright © 2017 JBoss by Red Hat. All rights reserved.