| Package | Description |
|---|---|
| org.mule.devkit.model.code |
Library for generating Java source code
|
| Modifier and Type | Method and Description |
|---|---|
GeneratedMethod |
GeneratedMethod._throws(Class<? extends Throwable> exception) |
GeneratedMethod |
GeneratedMethod._throws(TypeReference exception)
Add an exception to the list of exceptions that this
method may throw.
|
GeneratedMethod |
GeneratedClass.constructor(int mods)
Adds a constructor to this class.
|
GeneratedMethod |
GeneratedClass.getConstructor(Type[] argTypes)
Looks for a method that has the specified method signature
and return it.
|
GeneratedMethod |
GeneratedClass.getMethod(String name,
Type[] argTypes)
Looks for a method that has the specified method signature
and return it.
|
GeneratedMethod |
GeneratedClass.getter(GeneratedField field)
Generate a getter method for the specified field
|
GeneratedMethod |
GeneratedClass.method(int mods,
Class<?> type,
Class<?> narrowedType,
String name) |
GeneratedMethod |
GeneratedClass.method(int mods,
Class<?> type,
String name) |
GeneratedMethod |
GeneratedClass.method(int mods,
Type type,
String name)
Add a method to the list of method members of this DefinedClass instance.
|
GeneratedMethod |
GeneratedClass.setter(GeneratedField field)
Generate a setter method for the specified field
|
GeneratedMethod |
GeneratedClass.setterOverride(GeneratedField field)
Generate a setter and puts an override annotation on it
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<GeneratedMethod> |
GeneratedClass.constructors()
Returns an iterator that walks the constructors defined in this class.
|
Collection<GeneratedMethod> |
GeneratedClass.methods()
Returns the set of methods defined in this class.
|
| Modifier and Type | Method and Description |
|---|---|
GeneratedInvocation |
GeneratedBlock.invoke(GeneratedExpression expr,
GeneratedMethod method)
Creates an invocation statement and adds it to this block.
|
static GeneratedInvocation |
ExpressionFactory.invoke(GeneratedExpression lhs,
GeneratedMethod method) |
GeneratedInvocation |
GeneratedExpression.invoke(GeneratedMethod method)
Returns "[this].[method]".
|
GeneratedInvocation |
GeneratedBlock.invoke(GeneratedMethod method)
Creates an invocation statement and adds it to this block.
|
static GeneratedInvocation |
ExpressionFactory.invoke(GeneratedMethod method) |
GeneratedInvocation |
AbstractExpression.invoke(GeneratedMethod method) |
GeneratedInvocation |
TypeReference.staticInvoke(GeneratedMethod method)
Generates a static method invocation.
|
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.