Package org.tentackle.buildsupport
Class RemoteMethodInfoParameter
java.lang.Object
org.tentackle.buildsupport.RemoteMethodInfoParameter
Abstraction of a method parameter.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteMethodInfoParameter(RemoteMethodInfo info, String name, String type) Constructs a RemoteMethodInfoParameter.RemoteMethodInfoParameter(RemoteMethodInfo info, StringTokenizer stok) Constructs a RemoteMethodInfoParameter.RemoteMethodInfoParameter(RemoteMethodInfo info, ProcessingEnvironment processingEnv, VariableElement var) Constructs a RemoteMethodInfoParameter. -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()Gets the parent info.Modifier[]Gets the modifiersgetName()Gets the formal parameter namegetType()Gets the parameter typebooleanbooleanbooleanbooleanReturns whether the parameter is an instance of a session.booleanisModifierSet(Modifier modifier) Checks if a given modifier is set.booleanisVarArg()voidsetVarArg(boolean varArg) toString()voidwrite(PrintWriter writer) Writes this parameter to the infofile.
-
Constructor Details
-
RemoteMethodInfoParameter
public RemoteMethodInfoParameter(RemoteMethodInfo info, ProcessingEnvironment processingEnv, VariableElement var) Constructs a RemoteMethodInfoParameter.- Parameters:
info- the parent infoprocessingEnv- the annotation processing environmentvar- the variable
-
RemoteMethodInfoParameter
Constructs a RemoteMethodInfoParameter.- Parameters:
info- the parent infostok- the tokenizer to read from
-
RemoteMethodInfoParameter
Constructs a RemoteMethodInfoParameter.- Parameters:
info- the parent infoname- the parameter nametype- the parameter type
-
-
Method Details
-
getInfo
Gets the parent info.- Returns:
- the parent
-
getName
Gets the formal parameter name- Returns:
- the parameter name
-
getType
Gets the parameter type- Returns:
- the parameter type
-
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
-
isInstanceOfContext
public boolean isInstanceOfContext() -
isVarArg
public boolean isVarArg() -
setVarArg
public void setVarArg(boolean varArg) -
isModifierSet
Checks if a given modifier is set.- Parameters:
modifier- the modifier to test- Returns:
- true modifier set
-
write
Writes this parameter to the infofile.- Parameters:
writer- the writer bound to the infofile
-
toString
-