Class RemoteMethodInfoParameter


  • public class RemoteMethodInfoParameter
    extends java.lang.Object
    Abstraction of a method parameter.
    • 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 info
        processingEnv - the annotation processing environment
        var - the variable
      • RemoteMethodInfoParameter

        public RemoteMethodInfoParameter​(RemoteMethodInfo info,
                                         java.util.StringTokenizer stok)
        Constructs a RemoteMethodInfoParameter.
        Parameters:
        info - the parent info
        stok - 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 info
        name - the parameter name
        type - 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:
        toString in class java.lang.Object