Class RemoteMethodInfoParameter

java.lang.Object
org.tentackle.buildsupport.RemoteMethodInfoParameter

public class RemoteMethodInfoParameter extends Object
Abstraction of a method parameter.
  • Constructor Details

    • RemoteMethodInfoParameter

      public RemoteMethodInfoParameter(RemoteMethodInfo info, ProcessingEnvironment processingEnv, VariableElement var)
      Constructs a RemoteMethodInfoParameter.
      Parameters:
      info - the parent info
      processingEnv - the annotation processing environment
      var - the variable
    • RemoteMethodInfoParameter

      public RemoteMethodInfoParameter(RemoteMethodInfo info, StringTokenizer stok)
      Constructs a RemoteMethodInfoParameter.
      Parameters:
      info - the parent info
      stok - the tokenizer to read from
    • RemoteMethodInfoParameter

      public RemoteMethodInfoParameter(RemoteMethodInfo info, String name, String type)
      Constructs a RemoteMethodInfoParameter.
      Parameters:
      info - the parent info
      name - the parameter name
      type - the parameter type
  • Method Details

    • getInfo

      public RemoteMethodInfo getInfo()
      Gets the parent info.
      Returns:
      the parent
    • getName

      public String getName()
      Gets the formal parameter name
      Returns:
      the parameter name
    • getType

      public String getType()
      Gets the parameter type
      Returns:
      the parameter type
    • getModifiers

      public 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 String getModifiersAsString()
    • isInstanceOfContext

      public boolean isInstanceOfContext()
    • isVarArg

      public boolean isVarArg()
    • setVarArg

      public void setVarArg(boolean varArg)
    • isModifierSet

      public boolean isModifierSet(Modifier modifier)
      Checks if a given modifier is set.
      Parameters:
      modifier - the modifier to test
      Returns:
      true modifier set
    • write

      public void write(PrintWriter writer)
      Writes this parameter to the infofile.
      Parameters:
      writer - the writer bound to the infofile
    • toString

      public String toString()
      Overrides:
      toString in class Object