Packageorg.granite.reflect
Classpublic class Parameter
InheritanceParameter Inheritance DescribedElement

The Parameter class represents a method or constructor parameter.

See also

Parameterizable.parameters
Method
Constructor


Public Properties
 PropertyDefined by
 InheriteddeclaredBy : Type
The Type instance this described element belongs to.
DescribedElement
  index : int
[read-only] Returns the 1-based position of this parameter in the method or constructor it belongs to.
Parameter
  parameterizable : Parameterizable
[read-only] The method or constructor this parameter belongs to.
Parameter
  type : Type
[read-only] The type of this parameter (may be Type.WILD).
Parameter
Public Methods
 MethodDefined by
  
Parameter(parameterizable:Parameterizable, desc:XML)
Constructs a new Parameter instance.
Parameter
 Inherited
equals(o:*):Boolean
Tells if this DescribedElement instance is equal to the supplied o parameter.
DescribedElement
  
isOptional():Boolean
Checks if this parameter is optional.
Parameter
 Inherited
toString():String
Returns the a string (XML) representation of this described element.
DescribedElement
Property detail
indexproperty
index:int  [read-only]

Returns the 1-based position of this parameter in the method or constructor it belongs to.

Implementation
    public function get index():int
parameterizableproperty 
parameterizable:Parameterizable  [read-only]

The method or constructor this parameter belongs to.

Implementation
    public function get parameterizable():Parameterizable
typeproperty 
type:Type  [read-only]

The type of this parameter (may be Type.WILD).

Implementation
    public function get type():Type

See also

Constructor detail
Parameter()constructor
public function Parameter(parameterizable:Parameterizable, desc:XML)

Constructs a new Parameter instance.

Parameters
parameterizable:Parameterizable — a Parameterizable instance (either a method or a constructor).
 
desc:XML
Method detail
isOptional()method
public function isOptional():Boolean

Checks if this parameter is optional.

Returns
Booleantrue if this parameter is optional, false otherwise.