| Package | org.granite.reflect |
| Class | public class Parameter |
| Inheritance | Parameter DescribedElement |
Parameter class represents a method or constructor parameter.
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | declaredBy : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Parameter(parameterizable:Parameterizable, desc:XML)
Constructs a new
Parameter instance. | Parameter | ||
![]() |
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 | ||
![]() |
toString():String
Returns the a string (XML) representation of this described element.
| DescribedElement | |
| index | property |
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
| parameterizable | property |
parameterizable:Parameterizable [read-only]The method or constructor this parameter belongs to.
Implementation public function get parameterizable():Parameterizable
| type | property |
type:Type [read-only]
The type of this parameter (may be Type.WILD).
public function get type():Type
See also
| Parameter | () | constructor |
public function Parameter(parameterizable:Parameterizable, desc:XML)
Constructs a new Parameter instance.
parameterizable:Parameterizable — a Parameterizable instance (either a method
or a constructor).
|
|
desc:XML |
| isOptional | () | method |
public function isOptional():BooleanChecks if this parameter is optional.
ReturnsBoolean — true if this parameter is optional, false
otherwise.
|