net.sf.cglib.util
Class StringSwitcher.Generator
- StringSwitcher
- ClassGenerator
public static class StringSwitcher.Generator
getAttemptLoad, getClassLoader, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setNamingPolicy, setStrategy, setUseCache |
Generator
public Generator()
setFixedInput
public void setFixedInput(boolean fixedInput)
Configure how unknown String keys will be handled.
fixedInput - if false, an unknown key will be returned from StringSwitcher.Generator as -1; if true,
the result will be undefined, and the resulting code will be faster
setInts
public void setInts(int[] ints)
Set the array of integer results.
ints - the array of integer results; must be the same length as the key array
setStrings
public void setStrings(String[] strings)
Set the array of recognized Strings.
strings - the array of String keys; must be the same length as the value array
Copyright (c) 2001 - Apache Software Foundation