public final class AstTagMethodView extends java.lang.Object implements TagMethodView
A method being compiled, seen through TagMethodView so that TagDiscoveryRules can classify it before the class exists.
Two differences from the compiled view are handled here. Parameter defaults have not yet been expanded into overloads, so they are reported as optional. And whether names will survive into the class file is a property of the compilation rather than of the method, so it is supplied by the caller from the compiler configuration.
| Constructor and description |
|---|
AstTagMethodView(org.codehaus.groovy.ast.MethodNode method, boolean parameterNamesRetained)
|
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.String |
getName() |
|
public int |
getParameterCount() |
|
public java.lang.String |
getParameterName(int index) |
|
public boolean |
hasNotATagAnnotation() |
|
public boolean |
hasTagAnnotation() |
|
public boolean |
isGenerated() |
|
public boolean |
isParameterClosureAssignable(int index) |
|
public boolean |
isParameterMapAssignable(int index) |
|
public boolean |
isParameterNamePresent(int index) |
|
public boolean |
isParameterOptional(int index) |
|
public boolean |
isPublic() |
|
public boolean |
isStatic() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
method - the method being compiledparameterNamesRetained - whether this compilation writes parameter names into the class
file, which decides whether the attributes and body parameters have to carry those names