com.threerings.presents.tools
Class InvocationTask.ServiceMethod
java.lang.Object
com.threerings.presents.tools.InvocationTask.ServiceMethod
- All Implemented Interfaces:
- Comparable<InvocationTask.ServiceMethod>
- Enclosing class:
- InvocationTask
public class InvocationTask.ServiceMethod
- extends Object
- implements Comparable<InvocationTask.ServiceMethod>
Used to keep track of invocation service methods or listener methods.
method
public Method method
listenerArgs
public List<InvocationTask.ListenerArgument> listenerArgs
InvocationTask.ServiceMethod
public InvocationTask.ServiceMethod(Method method)
- Creates a new service method.
- Parameters:
method - the method to inspect
gatherImports
public void gatherImports(ImportSet imports)
getCode
public String getCode()
getSenderMethodName
public String getSenderMethodName()
typeParams
public String typeParams()
getArgList
public String getArgList()
getASArgList
public String getASArgList()
getASInvokeArgList
public String getASInvokeArgList()
getWrappedArgList
public String getWrappedArgList()
gatherASWrappedArgListImports
public void gatherASWrappedArgListImports(ImportSet set)
getASWrappedArgList
public String getASWrappedArgList()
hasArgs
public boolean hasArgs()
hasParameterizedArgs
public boolean hasParameterizedArgs()
getUnwrappedArgListAsListeners
public String getUnwrappedArgListAsListeners()
getUnwrappedArgList
public String getUnwrappedArgList()
getUnwrappedArgList
public String getUnwrappedArgList(boolean listenerMode)
getASUnwrappedArgListAsListeners
public String getASUnwrappedArgListAsListeners()
getASUnwrappedArgList
public String getASUnwrappedArgList()
getASUnwrappedArgList
public String getASUnwrappedArgList(boolean listenerMode)
getTransport
public String getTransport()
compareTo
public int compareTo(InvocationTask.ServiceMethod other)
- Specified by:
compareTo in interface Comparable<InvocationTask.ServiceMethod>
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
addImportsForType
protected void addImportsForType(Type type,
ImportSet imports)
collectTypeParams
protected void collectTypeParams(Type type,
List<String> params)
boxArgument
protected String boxArgument(Class<?> clazz,
int index)
unboxArgument
protected String unboxArgument(Type type,
int index,
boolean listenerMode)