| java.lang.Object com.sun.j2mews.sg.AbstractGenerator
All known Subclasses: com.sun.j2mews.sg.StubGenerator, com.sun.j2mews.sg.RemoteInterfaceGenerator,
AbstractGenerator | abstract public class AbstractGenerator (Code) | | We'll generate the Java client proxy for JSR-172.
|
Method Summary | |
protected static String | baseName(String fullName) This will return a name from @param fullName where everything upto
and including the last '.' is removed. | public void | generate(Service service) | protected void | generate() At this point, the service and port variables are set. | abstract protected void | generateClass() | protected List | getExpandedParametersList(JavaMethod method) | protected JavaType | getExpandedReturnType(JavaMethod method) | abstract protected String | getFullClassName() The port and env variables will be set correctly before
calling this method. | protected Localizable | getMessage(String key) | protected Localizable | getMessage(String key, String arg) | protected Localizable | getMessage(String key, String arg1, String arg2) | protected Localizable | getMessage(String key, String arg1, String arg2, String arg3) | protected Localizable | getMessage(String key, Localizable l) | protected Localizable | getMessage(String key, Object[] args) | abstract protected File | getSourceFile() The port and env variables will be set correctly before
calling this method. | abstract protected String | getSourceFileType() | protected String | instanceOf(JavaType type, String suffix, Map usedNames) | protected String | instanceOf(JavaType type, Map usedNames) | protected String | instanceOf(QName name, String suffix, Map usedNames) | protected String | instanceOf(String name, String suffix, Map usedNames) Make a variable name valid and unique. | public static boolean | isValidType(String type) Is @param type valid for MIDP?
This assumes CLDC 1.1 (where float and double are okay). | protected String | javaTypeToString(JavaType type) | protected String | localize(Localizable msg) | protected void | log(String msg) | protected String | makeUniq(String name, Map usedNames) Make a variable name unique. | protected String | makeVarName(QName name, String prefix, Map usedNames) Try to get a unique and somewhat nice looking name. | protected void | onError(Localizable msg) | protected void | onInfo(Localizable msg) | protected void | onWarning(Localizable msg) | public void | perform(Model model, Configuration config, Properties options) | public void | setEnvironment(com.sun.xml.rpc.processor.util.ProcessorEnvironment e) | protected void | setFullClassName(String name) Sets the internal state of fullClassName, className, & packageName. | public void | setLocalizer(Localizer l) | protected void | writeImports() Here's your chance to import anything. | protected void | writeOutGeneratedFile() |
EXPAND_ARGUMENTS | final public static String EXPAND_ARGUMENTS(Code) | | |
FLOAT_DOUBLE_TO_STRING | final public static String FLOAT_DOUBLE_TO_STRING(Code) | | |
SHOW_ALL_CLDC1_0_INFO | final public static String SHOW_ALL_CLDC1_0_INFO(Code) | | |
env | protected com.sun.xml.rpc.processor.util.ProcessorEnvironment env(Code) | | |
expandArguments | protected boolean expandArguments(Code) | | Whether or not the formal parameters on the Stub should get expanded.
It will be done for each parameter and return type, if there's
only 1 of them and it's a JavaStructureType.
|
jw | protected JavaWriter jw(Code) | | |
localizer | protected Localizer localizer(Code) | | |
messageFactory | protected LocalizableMessageFactory messageFactory(Code) | | If you're going to call getMessage, then you need to set
messageFactory.
|
optimize | protected boolean optimize(Code) | | Whether to trade readable generated code for more efficient generated
code.
|
service | protected Service service(Code) | | |
showCldc1_0Info | protected boolean showCldc1_0Info(Code) | | Whether or not to display every info message, or just 1 (similar to
javac's -deprecation flag).
|
baseName | protected static String baseName(String fullName)(Code) | | This will return a name from @param fullName where everything upto
and including the last '.' is removed.
eg: "java.lang.String[]" -> "String[]"
"java.util.ArrayList" -> "ArrayList"
|
getExpandedParametersList | protected List getExpandedParametersList(JavaMethod method)(Code) | | a List of parameters to this method in the stub, takinginto account expandArguments. |
getExpandedReturnType | protected JavaType getExpandedReturnType(JavaMethod method)(Code) | | the return type taking into account expandArguments. |
getFullClassName | abstract protected String getFullClassName()(Code) | | The port and env variables will be set correctly before
calling this method.
|
getMessage | protected Localizable getMessage(String key)(Code) | | |
getMessage | protected Localizable getMessage(String key, Localizable l)(Code) | | |
getSourceFile | abstract protected File getSourceFile()(Code) | | The port and env variables will be set correctly before
calling this method.
This is the File that gets written to.
|
getSourceFileType | abstract protected String getSourceFileType()(Code) | | See Also: GeneratorConstants |
isValidType | public static boolean isValidType(String type)(Code) | | Is @param type valid for MIDP?
This assumes CLDC 1.1 (where float and double are okay).
|
javaTypeToString | protected String javaTypeToString(JavaType type)(Code) | | |
makeUniq | protected String makeUniq(String name, Map usedNames)(Code) | | Make a variable name unique.
Puts the name into usedNames.
|
makeVarName | protected String makeVarName(QName name, String prefix, Map usedNames)(Code) | | Try to get a unique and somewhat nice looking name.
|
onError | protected void onError(Localizable msg)(Code) | | |
onInfo | protected void onInfo(Localizable msg)(Code) | | |
onWarning | protected void onWarning(Localizable msg)(Code) | | |
perform | public void perform(Model model, Configuration config, Properties options)(Code) | | |
setEnvironment | public void setEnvironment(com.sun.xml.rpc.processor.util.ProcessorEnvironment e)(Code) | | |
setFullClassName | protected void setFullClassName(String name)(Code) | | Sets the internal state of fullClassName, className, & packageName.
Parameters: name - the full class name |
setLocalizer | public void setLocalizer(Localizer l)(Code) | | |
writeImports | protected void writeImports() throws IOException(Code) | | Here's your chance to import anything.
|
|
|