| Modifier and Type | Method and Description |
|---|---|
| public default Parameter | |
| public default Parameter | |
| public default Parameter | Returns: theParameter createdthe name of the class, ex : org.test.Foo or Foo if you added manually the import className, String the name of the parameter name)Remember to import the class in the compilation unit yourself |
| public default Parameter | |
| public default N | |
| public default N | |
| public default N | addParameter(String
the name of the class, ex : org.test.Foo or Foo if you added manually the import className, String the name of the parameter name)Remember to import the class in the compilation unit yourself |
| public default N | |
| public default Parameter | |
| public default Optional | Returns: null if not found, the param found otherwisethe name of the param name)Try to find a |
| public default Optional | Returns: null if not found, the param found otherwisethe type of the param type)Try to find a |
| public default Optional | Returns: null if not found, the param found otherwisethe type of the param take care about generics, it wont work type)Try to find a |
| public NodeList | |
| public default boolean | Returns: true if all parameters match one by one, in the given order.the types of parameters like paramTypes)"Map<Integer,String>", "int" to match
void foo(Map<Integer,String> myMap, int number).Check if the parameters have certain types. |
| public default boolean | Returns: true if all parameters match one by one, in the given order.the types of parameters like paramTypes)Map.class, int.class to match
void foo(Map<Integer,String> myMap, int number).Check if the parameters have certain types. |
| public default N | |
| public N | |
| public void |
| addAndGetParameter | back to summary |
|---|---|
| public default Parameter addAndGetParameter(Type type, String name) | |
| addAndGetParameter | back to summary |
|---|---|
| public default Parameter addAndGetParameter(Class<?> paramClass, String name) | |
| addAndGetParameter | back to summary |
|---|---|
| public default Parameter addAndGetParameter(String className, String name) Remember to import the class in the compilation unit yourself | |
| addAndGetParameter | back to summary |
|---|---|
| public default Parameter addAndGetParameter(Parameter parameter) | |
| addParameter | back to summary |
|---|---|
| public default N addParameter(Type type, String name) | |
| addParameter | back to summary |
|---|---|
| public default N addParameter(Class<?> paramClass, String name) | |
| addParameter | back to summary |
|---|---|
| public default N addParameter(String className, String name) Remember to import the class in the compilation unit yourself | |
| addParameter | back to summary |
|---|---|
public default N addParameter(Parameter parameter)
| |
| getParameter | back to summary |
|---|---|
| public default Parameter getParameter(int i) | |
| getParameterByName | back to summary |
|---|---|
| public default Optional Try to find a | |
| getParameterByType | back to summary |
|---|---|
| public default Optional Try to find a | |
| getParameterByType | back to summary |
|---|---|
| public default Optional Try to find a | |
| getParameters | back to summary |
|---|---|
| public NodeList | |
| hasParametersOfType | back to summary |
|---|---|
| public default boolean hasParametersOfType(String... paramTypes) Check if the parameters have certain types. The given parameter types must literally match the declared
types of this node's parameters, so passing the string
| |
| hasParametersOfType | back to summary |
|---|---|
| public default boolean hasParametersOfType(Class<?>... paramTypes) Check if the parameters have certain types. Note that this is a match in SimpleName, so
| |
| setParameter | back to summary |
|---|---|
public default N setParameter(int i, Parameter parameter)
| |
| setParameters | back to summary |
|---|---|
| public N setParameters(NodeList<Parameter> parameters) | |
| tryAddImportToParentCompilationUnit | back to summary |
|---|---|
| public void tryAddImportToParentCompilationUnit(Class<?> clazz) | |