| Modifier and Type | Class and Description |
|---|---|
| public static interface | AbstractParserGenerator.
A class that separates out the different behaviour of the three state machines (VERB, VERSION and HEADER) |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| protected static final int | |
| public static final String | |
| private static final int | |
| protected final String | |
| protected static final int | |
| private final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected static final int | |
| public static final String | |
| public static final String | |
| private final String | |
| public static final int | |
| protected static final int | |
| protected final String | |
| private final String | |
| public static final int | |
| protected String | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public | AbstractParserGenerator(final String parseStateClass, final String resultClass, final String constructorDescriptor, String existingClassName)
|
| Modifier and Type | Method and Description |
|---|---|
| private static void | addStates(final AbstractParserGenerator.
|
| private static void | addStates(final AbstractParserGenerator.
|
| private void | createStateField(final AbstractParserGenerator.
|
| protected void | createStateMachine(final String[] originalItems, final String className, final ClassFile file, final ClassMethod sctor, final AtomicInteger fieldCounter, final String methodName, final AbstractParserGenerator.
|
| protected abstract void | createStateMachines(String[] httpVerbs, String[] httpVersions, String[] standardHeaders, String className, ClassFile file, ClassMethod sctor, AtomicInteger fieldCounter)
|
| public byte[] | |
| private void | |
| private void | invokeState(final String className, final ClassFile file, final CodeAttribute c, final AbstractParserGenerator.
|
| private void | |
| private void | setupStateNo(final AbstractParserGenerator.
|
| private static void | stateNotFound(final CodeAttribute c, final TableSwitchBuilder builder)
Throws an exception when an invalid state is hit in a tableswitch |
| private void | tokenDone(final CodeAttribute c, final CodeLocation returnCode, final AbstractParserGenerator.
|
| private void | writeStateMachine(final String className, final ClassFile file, final CodeAttribute c, final AbstractParserGenerator.
|
| BAD_REQUEST_EXCEPTION | back to summary |
|---|---|
| public static final String BAD_REQUEST_EXCEPTION | |
| BYTE_BUFFER_VAR | back to summary |
|---|---|
| protected static final int BYTE_BUFFER_VAR | |
| CLASS_NAME_SUFFIX | back to summary |
|---|---|
| public static final String CLASS_NAME_SUFFIX | |
| CONSTRUCTOR_HTTP_STRING_MAP_VAR | back to summary |
|---|---|
| private static final int CONSTRUCTOR_HTTP_STRING_MAP_VAR | |
| constructorDescriptor | back to summary |
|---|---|
| protected final String constructorDescriptor | |
| CURRENT_STATE_VAR | back to summary |
|---|---|
| protected static final int CURRENT_STATE_VAR | |
| existingClassName | back to summary |
|---|---|
| private final String existingClassName | |
| HANDLE_AFTER_VERSION | back to summary |
|---|---|
| public static final String HANDLE_AFTER_VERSION | |
| HANDLE_HEADER | back to summary |
|---|---|
| public static final String HANDLE_HEADER | |
| HANDLE_HEADER_VALUE | back to summary |
|---|---|
| public static final String HANDLE_HEADER_VALUE | |
| HANDLE_HTTP_VERB | back to summary |
|---|---|
| public static final String HANDLE_HTTP_VERB | |
| HANDLE_HTTP_VERSION | back to summary |
|---|---|
| public static final String HANDLE_HTTP_VERSION | |
| HANDLE_PATH | back to summary |
|---|---|
| public static final String HANDLE_PATH | |
| HTTP_RESULT | back to summary |
|---|---|
| protected static final int HTTP_RESULT | |
| HTTP_STRING_CLASS | back to summary |
|---|---|
| public static final String HTTP_STRING_CLASS | |
| HTTP_STRING_DESCRIPTOR | back to summary |
|---|---|
| public static final String HTTP_STRING_DESCRIPTOR | |
| httpExchangeDescriptor | back to summary |
|---|---|
| private final String httpExchangeDescriptor | |
| NO_STATE | back to summary |
|---|---|
| public static final int NO_STATE | |
| PARSE_STATE_VAR | back to summary |
|---|---|
| protected static final int PARSE_STATE_VAR | |
| parseStateClass | back to summary |
|---|---|
| protected final String parseStateClass | |
| parseStateDescriptor | back to summary |
|---|---|
| private final String parseStateDescriptor | |
| PREFIX_MATCH | back to summary |
|---|---|
| public static final int PREFIX_MATCH | |
| resultClass | back to summary |
|---|---|
| protected String resultClass | |
| STATE_CURRENT_BYTES_VAR | back to summary |
|---|---|
| protected static final int STATE_CURRENT_BYTES_VAR | |
| STATE_CURRENT_VAR | back to summary |
|---|---|
| protected static final int STATE_CURRENT_VAR | |
| STATE_POS_VAR | back to summary |
|---|---|
| protected static final int STATE_POS_VAR | |
| STATE_STRING_BUILDER_VAR | back to summary |
|---|---|
| protected static final int STATE_STRING_BUILDER_VAR | |
| AbstractParserGenerator | back to summary |
|---|---|
| public AbstractParserGenerator(final String parseStateClass, final String resultClass, final String constructorDescriptor, String existingClassName) | |
| addStates | back to summary |
|---|---|
| private static void addStates(final AbstractParserGenerator. | |
| addStates | back to summary |
|---|---|
| private static void addStates(final AbstractParserGenerator. | |
| createStateField | back to summary |
|---|---|
| private void createStateField(final AbstractParserGenerator. | |
| createStateMachine | back to summary |
|---|---|
| protected void createStateMachine(final String[] originalItems, final String className, final ClassFile file, final ClassMethod sctor, final AtomicInteger fieldCounter, final String methodName, final AbstractParserGenerator. | |
| createStateMachines | back to summary |
|---|---|
| protected abstract void createStateMachines(String[] httpVerbs, String[] httpVersions, String[] standardHeaders, String className, ClassFile file, ClassMethod sctor, AtomicInteger fieldCounter) | |
| createTokenizer | back to summary |
|---|---|
| public byte[] createTokenizer(final String[] httpVerbs, String[] httpVersions, String[] standardHeaders) | |
| handleReturnIfNoMoreBytes | back to summary |
|---|---|
| private void handleReturnIfNoMoreBytes(final CodeAttribute c, final CodeLocation returnCode) | |
| invokeState | back to summary |
|---|---|
| private void invokeState(final String className, final ClassFile file, final CodeAttribute c, final AbstractParserGenerator. | |
| setupLocalVariables | back to summary |
|---|---|
| private void setupLocalVariables(final CodeAttribute c) | |
| setupStateNo | back to summary |
|---|---|
| private void setupStateNo(final AbstractParserGenerator. | |
| stateNotFound | back to summary |
|---|---|
| private static void stateNotFound(final CodeAttribute c, final TableSwitchBuilder builder) Throws an exception when an invalid state is hit in a tableswitch | |
| tokenDone | back to summary |
|---|---|
| private void tokenDone(final CodeAttribute c, final CodeLocation returnCode, final AbstractParserGenerator. | |
| writeStateMachine | back to summary |
|---|---|
| private void writeStateMachine(final String className, final ClassFile file, final CodeAttribute c, final AbstractParserGenerator. | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public void |
| handleOtherToken | back to summary |
|---|---|
| public void handleOtherToken(CodeAttribute c) | |
| handleStateMachineMatchedToken | back to summary |
|---|---|
| public void handleStateMachineMatchedToken(CodeAttribute c) | |
| initialNewlineMeansRequestDone | back to summary |
|---|---|
| public boolean initialNewlineMeansRequestDone() | |
| isHeader | back to summary |
|---|---|
| public boolean isHeader() | |
| updateParseState | back to summary |
|---|---|
| public void updateParseState(CodeAttribute c) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| pack-priv String | |
| pack-priv String | |
| private CodeLocation | |
| pack-priv final Map | |
| pack-priv final String | |
| pack-priv Integer | |
| pack-priv String | |
| pack-priv final byte |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(final AbstractParserGenerator.
the object to be compared. oImplements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| branchEnds | back to summary |
|---|---|
| private final Set<BranchEnd> branchEnds | |
| fieldName | back to summary |
|---|---|
| pack-priv String fieldName | |
| httpStringFieldName | back to summary |
|---|---|
| pack-priv String httpStringFieldName | |
| location | back to summary |
|---|---|
| private CodeLocation location | |
| next | back to summary |
|---|---|
| pack-priv final Map<Byte, AbstractParserGenerator. | |
| soFar | back to summary |
|---|---|
| pack-priv final String soFar | |
| stateno | back to summary |
|---|---|
| pack-priv Integer stateno | |
| terminalState | back to summary |
|---|---|
| pack-priv String terminalState | |
| value | back to summary |
|---|---|
| pack-priv final byte value | |
| State | back to summary |
|---|---|
| private State(final byte value, final String soFar) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(final AbstractParserGenerator. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| ifne | back to summary |
|---|---|
| pack-priv void ifne(final CodeAttribute ca) | |
| jumpTo | back to summary |
|---|---|
| pack-priv void jumpTo(final CodeAttribute ca) | |
| mark | back to summary |
|---|---|
| pack-priv void mark(final CodeAttribute ca) | |