Class ParameterImpl

  • All Implemented Interfaces:
    Parameter

    @Deprecated
    class ParameterImpl
    extends java.lang.Object
    implements Parameter
    Deprecated.
    ParameterImpl information. This includes a parameter type and parameter name.

    This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private DocEnv env
      Deprecated.
       
      private com.sun.tools.javac.code.Symbol.VarSymbol sym
      Deprecated.
       
      private Type type
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      ParameterImpl​(DocEnv env, com.sun.tools.javac.code.Symbol.VarSymbol sym)
      Deprecated.
      Constructor of parameter info class.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      AnnotationDesc[] annotations()
      Deprecated.
      Get the annotations of this parameter.
      java.lang.String name()
      Deprecated.
      Get local name of this parameter.
      java.lang.String toString()
      Deprecated.
      Returns a string representation of the parameter.
      Type type()
      Deprecated.
      Get the type of this parameter.
      java.lang.String typeName()
      Deprecated.
      Get type name of this parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • env

        private final DocEnv env
        Deprecated.
      • sym

        private final com.sun.tools.javac.code.Symbol.VarSymbol sym
        Deprecated.
      • type

        private final Type type
        Deprecated.
    • Constructor Detail

      • ParameterImpl

        ParameterImpl​(DocEnv env,
                      com.sun.tools.javac.code.Symbol.VarSymbol sym)
        Deprecated.
        Constructor of parameter info class.
    • Method Detail

      • type

        public Type type()
        Deprecated.
        Get the type of this parameter.
        Specified by:
        type in interface Parameter
        Returns:
        the type of this parameter.
      • name

        public java.lang.String name()
        Deprecated.
        Get local name of this parameter. For example if parameter is the short 'index', returns "index".
        Specified by:
        name in interface Parameter
        Returns:
        the name of this parameter as a string.
      • typeName

        public java.lang.String typeName()
        Deprecated.
        Get type name of this parameter. For example if parameter is the short 'index', returns "short".
        Specified by:
        typeName in interface Parameter
        Returns:
        a complete string representation of the type.
      • toString

        public java.lang.String toString()
        Deprecated.
        Returns a string representation of the parameter.

        For example if parameter is the short 'index', returns "short index".

        Specified by:
        toString in interface Parameter
        Overrides:
        toString in class java.lang.Object
        Returns:
        type name and parameter name of this parameter.
      • annotations

        public AnnotationDesc[] annotations()
        Deprecated.
        Get the annotations of this parameter. Return an empty array if there are none.
        Specified by:
        annotations in interface Parameter
        Returns:
        the annotations of this parameter.