MethodReference implementation based on a MethodSpec.
| Modifier and Type | Field and Description |
|---|---|
| private final ClassName | |
| private final MethodSpec |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addArguments(CodeBlock.
the code builder to use to add method arguments code,the code generator to use argumentCodeGeneratorAdd the code for the method arguments using the specified
|
| protected CodeBlock | |
| private boolean | |
| private boolean | |
| public CodeBlock | toCodeBlock()
Implements org. CodeBlock.
|
| public CodeBlock | toInvokeCodeBlock(MethodReference.
the argument code generator to use argumentCodeGenerator,the target class name targetClassName)Implements org. CodeBlock using the specified
ArgumentCodeGenerator.
|
| public String |
| declaringClass | back to summary |
|---|---|
| private final ClassName declaringClass
| |
| method | back to summary |
|---|---|
| private final MethodSpec method | |
| DefaultMethodReference | back to summary |
|---|---|
| public DefaultMethodReference(MethodSpec method, ClassName declaringClass) | |
| addArguments | back to summary |
|---|---|
| protected void addArguments(CodeBlock. Add the code for the method arguments using the specified
| |
| instantiateDeclaringClass | back to summary |
|---|---|
| protected CodeBlock instantiateDeclaringClass(ClassName declaringClass) | |
| isSameDeclaringClass | back to summary |
|---|---|
| private boolean isSameDeclaringClass(ClassName declaringClass) | |
| isStatic | back to summary |
|---|---|
| private boolean isStatic() | |
| toCodeBlock | back to summary |
|---|---|
| public CodeBlock toCodeBlock() Implements org. Doc from org. Return this method reference as a | |
| toInvokeCodeBlock | back to summary |
|---|---|
| public CodeBlock toInvokeCodeBlock(MethodReference. Implements org. Doc from org. Return this method reference as a If the caller has an instance of the type in which this method is defined, it can hint that by specifying the type as a target class.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |