Top Description Fields Constructors Methods
com.google.auto.value.processor

public final Class SimpleMethod

extends Object
Class Inheritance
Static Imports
java.util.stream.Collectors.joining

A method on an @AutoValue or AutoOneOf class that has no specific attached information, such as a toBuilder() method, or a build() 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.

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
SimpleMethod(javax.lang.model.element.ExecutableElement method)

Method Summary

Modifier and TypeMethod and Description
pack-priv static 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.

public String
public String
public String
private static String
throwsString(javax.lang.model.element.ExecutableElement method)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessback to summary
private final String access
nameback to summary
private final String name
throwsStringback to summary
private final String throwsString

Constructor Detail

SimpleMethodback to summary
pack-priv SimpleMethod(javax.lang.model.element.ExecutableElement method)

Method Detail

accessback to summary
pack-priv static 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 be public or protected followed by a space, or the empty string for default access.

getAccessback to summary
public String getAccess()
getNameback to summary
public String getName()
getThrowsback to summary
public String getThrows()
throwsStringback to summary
private static String throwsString(javax.lang.model.element.ExecutableElement method)