Package com.google.auto.value.processor
Class SimpleMethod
- java.lang.Object
-
- com.google.auto.value.processor.SimpleMethod
-
public final class SimpleMethod extends java.lang.Object
A method on an@AutoValue
orAutoOneOf
class that has no specific attached information, such as atoBuilder()
method, or abuild()
method, where only the name and access type is needed in context.It implements JavaBean-style getters which means it can be referenced from templates, for example
$method.access
. This template access means that the class and its getters must be public.
-
-
Constructor Summary
Constructors Constructor Description SimpleMethod(javax.lang.model.element.ExecutableElement method)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.String
access(javax.lang.model.element.ExecutableElement method)
Returns an appropriate string to be used in code for the access specification of the given method.java.lang.String
getAccess()
java.lang.String
getName()
-
-
-
Method Detail
-
getAccess
public java.lang.String getAccess()
-
getName
public java.lang.String getName()
-
access
static java.lang.String access(javax.lang.model.element.ExecutableElement method)
Returns an appropriate string to be used in code for the access specification of the given method. This will bepublic
orprotected
followed by a space, or the empty string for default access.
-
-