Package org.tentackle.buildsupport
Class RemoteMethodInfoParameter
- java.lang.Object
-
- org.tentackle.buildsupport.RemoteMethodInfoParameter
-
public class RemoteMethodInfoParameter extends java.lang.ObjectAbstraction of a method parameter.
-
-
Constructor Summary
Constructors Constructor Description RemoteMethodInfoParameter(RemoteMethodInfo info, java.lang.String name, java.lang.String type)Constructs a RemoteMethodInfoParameter.RemoteMethodInfoParameter(RemoteMethodInfo info, java.util.StringTokenizer stok)Constructs a RemoteMethodInfoParameter.RemoteMethodInfoParameter(RemoteMethodInfo info, javax.annotation.processing.ProcessingEnvironment processingEnv, javax.lang.model.element.VariableElement var)Constructs a RemoteMethodInfoParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteMethodInfogetInfo()Gets the parent info.javax.lang.model.element.Modifier[]getModifiers()Gets the modifiersjava.lang.StringgetModifiersAsString()java.lang.StringgetName()Gets the formal parameter namejava.lang.StringgetType()Gets the parameter typebooleanisInstanceOfContext()booleanisInstanceOfDbObject()booleanisInstanceOfPdo()booleanisInstanceOfSession()Returns whether the parameter is an instance of a session.booleanisModifierSet(javax.lang.model.element.Modifier modifier)Checks if a given modifier is set.booleanisVarArg()voidsetVarArg(boolean varArg)java.lang.StringtoString()voidwrite(java.io.PrintWriter writer)Writes this parameter to the infofile.
-
-
-
Constructor Detail
-
RemoteMethodInfoParameter
public RemoteMethodInfoParameter(RemoteMethodInfo info, javax.annotation.processing.ProcessingEnvironment processingEnv, javax.lang.model.element.VariableElement var)
Constructs a RemoteMethodInfoParameter.- Parameters:
info- the parent infoprocessingEnv- the annotation processing environmentvar- the variable
-
RemoteMethodInfoParameter
public RemoteMethodInfoParameter(RemoteMethodInfo info, java.util.StringTokenizer stok)
Constructs a RemoteMethodInfoParameter.- Parameters:
info- the parent infostok- the tokenizer to read from
-
RemoteMethodInfoParameter
public RemoteMethodInfoParameter(RemoteMethodInfo info, java.lang.String name, java.lang.String type)
Constructs a RemoteMethodInfoParameter.- Parameters:
info- the parent infoname- the parameter nametype- the parameter type
-
-
Method Detail
-
getInfo
public RemoteMethodInfo getInfo()
Gets the parent info.- Returns:
- the parent
-
getName
public java.lang.String getName()
Gets the formal parameter name- Returns:
- the parameter name
-
getType
public java.lang.String getType()
Gets the parameter type- Returns:
- the parameter type
-
getModifiers
public javax.lang.model.element.Modifier[] getModifiers()
Gets the modifiers- Returns:
- the array of modifiers
-
isInstanceOfSession
public boolean isInstanceOfSession()
Returns whether the parameter is an instance of a session.- Returns:
- true if instanceof Db
-
isInstanceOfDbObject
public boolean isInstanceOfDbObject()
-
isInstanceOfPdo
public boolean isInstanceOfPdo()
-
getModifiersAsString
public java.lang.String getModifiersAsString()
-
isInstanceOfContext
public boolean isInstanceOfContext()
-
isVarArg
public boolean isVarArg()
-
setVarArg
public void setVarArg(boolean varArg)
-
isModifierSet
public boolean isModifierSet(javax.lang.model.element.Modifier modifier)
Checks if a given modifier is set.- Parameters:
modifier- the modifier to test- Returns:
- true modifier set
-
write
public void write(java.io.PrintWriter writer)
Writes this parameter to the infofile.- Parameters:
writer- the writer bound to the infofile
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-