| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BlockStatement | Returns: the found or created block statementthe method (or constructor) node mNode)Gets the code for a method (or constructor) as a block. |
| public static String | Returns: the property name without the get/set/is prefix if a property or nulla MethodNode mNode)For a method node potentially representing a property, returns the name of the property. |
| public static String | Returns: the method node's descriptorthe method node mNode)Return the method node's descriptor which includes its return type, name and parameter types without generics. |
| public static String | Returns: the method node's abbreviated descriptor excluding the return typethe method node mNode)Return the method node's descriptor including its name and parameter types without generics. |
| MethodNodeUtils | back to summary |
|---|---|
| private MethodNodeUtils() | |
| getCodeAsBlock | back to summary |
|---|---|
| public static BlockStatement getCodeAsBlock(final MethodNode mNode) Gets the code for a method (or constructor) as a block.
If no code is found, an empty block will be returned.
If a single non-block statement is found, a block containing that statement will be returned.
Otherwise the existing block statement will be returned.
The original
| |
| getPropertyName | back to summary |
|---|---|
| public static String getPropertyName(final MethodNode mNode) For a method node potentially representing a property, returns the name of the property.
| |
| methodDescriptor | back to summary |
|---|---|
| public static String methodDescriptor(final MethodNode mNode) Return the method node's descriptor which includes its return type, name and parameter types without generics.
| |
| methodDescriptorWithoutReturnType | back to summary |
|---|---|
| public static String methodDescriptorWithoutReturnType(final MethodNode mNode) Return the method node's descriptor including its name and parameter types without generics.
| |