Package com.google.auto.value.processor
Class SimpleMethod
- java.lang.Object
-
- com.google.auto.value.processor.SimpleMethod
-
public final class SimpleMethod extends java.lang.ObjectA method on an@AutoValueorAutoOneOfclass 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.Stringaccess(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.StringgetAccess()java.lang.StringgetName()
-
-
-
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 bepublicorprotectedfollowed by a space, or the empty string for default access.
-
-