cz.cuni.amis.pogamut.sposh.elements
Class FormalParameters.Parameter

Package class diagram package FormalParameters.Parameter
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.elements.FormalParameters.Parameter
Enclosing class:
FormalParameters

public static final class FormalParameters.Parameter
extends Object

This class represents one formal parameter of C or AP.

Formal parameters are typeless variables that always have default value that is used when caller "forgets" to specify the parameter.

Author:
Honza

Constructor Summary
FormalParameters.Parameter(String name, Object defaultValue)
          Create new formal parameter for C or AP.
 
Method Summary
 Object getDefaultValue()
           
 String getName()
           
 void setDefaultValue(Object defaultValue)
          Set the default value of parameter to the passed object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormalParameters.Parameter

public FormalParameters.Parameter(String name,
                                  Object defaultValue)
Create new formal parameter for C or AP.

Parameters:
name - name of parameter, always start with "$"
defaultValue - value that is used when no value is passed for this parameter
Method Detail

getName

public String getName()
Returns:
the name of parameter, always starts with $.

getDefaultValue

public Object getDefaultValue()
Returns:
the defaultValue of parameter, as parsed object.

setDefaultValue

public void setDefaultValue(Object defaultValue)
Set the default value of parameter to the passed object.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.