Class MethodParameter

    • Constructor Summary

      Constructors 
      Constructor Description
      MethodParameter()
      Constructs a MethodParameter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(Visitor v)
      Accepts a visitor.
      MethodParameter copy()
      Creates a deep copy of this object.
      void dump​(java.io.DataOutputStream file)
      Dumps object to file stream on binary format.
      int getAccessFlags()
      Gets the access flags.
      int getNameIndex()
      Gets the name index.
      java.lang.String getParameterName​(ConstantPool constantPool)
      Gets the name of the parameter.
      boolean isFinal()
      Checks if this parameter is final.
      boolean isMandated()
      Checks if this parameter is mandated.
      boolean isSynthetic()
      Checks if this parameter is synthetic.
      void setAccessFlags​(int accessFlags)
      Sets the access flags.
      void setNameIndex​(int nameIndex)
      Sets the name index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • accept

        public void accept​(Visitor v)
        Description copied from interface: Node
        Accepts a visitor.
        Specified by:
        accept in interface Node
        Parameters:
        v - The visitor.
      • copy

        public MethodParameter copy()
        Creates a deep copy of this object.
        Returns:
        deep copy of this object.
      • dump

        public final void dump​(java.io.DataOutputStream file)
                        throws java.io.IOException
        Dumps object to file stream on binary format.
        Parameters:
        file - Output file stream.
        Throws:
        java.io.IOException - Thrown if an I/O error occurs.
      • getAccessFlags

        public int getAccessFlags()
        Gets the access flags.
        Returns:
        The access flags.
      • getNameIndex

        public int getNameIndex()
        Gets the name index.
        Returns:
        The name index.
      • getParameterName

        public java.lang.String getParameterName​(ConstantPool constantPool)
        Gets the name of the parameter.
        Parameters:
        constantPool - The pool to query.
        Returns:
        Constant from the given pool.
      • isFinal

        public boolean isFinal()
        Checks if this parameter is final.
        Returns:
        true if this parameter is final.
      • isMandated

        public boolean isMandated()
        Checks if this parameter is mandated.
        Returns:
        true if this parameter is mandated.
      • isSynthetic

        public boolean isSynthetic()
        Checks if this parameter is synthetic.
        Returns:
        true if this parameter is synthetic.
      • setAccessFlags

        public void setAccessFlags​(int accessFlags)
        Sets the access flags.
        Parameters:
        accessFlags - The access flags.
      • setNameIndex

        public void setNameIndex​(int nameIndex)
        Sets the name index.
        Parameters:
        nameIndex - The name index.