Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

CallableMethod

public class CallableMethod
extends Object

java.lang.Object
   ↳ androidx.remotecallback.compiler.CallableMethod


Summary

Public constructors

CallableMethod(String name, Element element, ProcessingEnvironment env)

Public methods

void addMethods(TypeSpec.Builder genClass, MethodSpec.Builder runBuilder, ProcessingEnvironment env, Messager messager)

Generate code and add the methods to the specified class/method.

String getName()

Get the name of the method this class is representing/tracking.

Inherited methods

Public constructors

CallableMethod

public CallableMethod (String name, 
                Element element, 
                ProcessingEnvironment env)

Parameters
name String

element Element

env ProcessingEnvironment

Public methods

addMethods

public void addMethods (TypeSpec.Builder genClass, 
                MethodSpec.Builder runBuilder, 
                ProcessingEnvironment env, 
                Messager messager)

Generate code and add the methods to the specified class/method.

Parameters
genClass TypeSpec.Builder

runBuilder MethodSpec.Builder

env ProcessingEnvironment

messager Messager

getName

public String getName ()

Get the name of the method this class is representing/tracking.

Returns
String