net.sf.cglib.util
public static class StringSwitcher.Generator extends AbstractClassGenerator
| Constructor Summary | |
|---|---|
| Generator() | |
| Method Summary | |
|---|---|
| StringSwitcher | create()
Generate the StringSwitcher. |
| void | generateClass(ClassVisitor v) |
| void | setFixedInput(boolean fixedInput)
Configure how unknown String keys will be handled. |
| void | setInts(int[] ints)
Set the array of integer results. |
| void | setStrings(String[] strings)
Set the array of recognized Strings. |
StringSwitcher.Parameters: fixedInput if false, an unknown key will be returned from Generator as -1; if true,
the result will be undefined, and the resulting code will be faster
Parameters: ints the array of integer results; must be the same length as the key array
See Also: Generator
Parameters: strings the array of String keys; must be the same length as the value array
See Also: Generator