cz.cuni.amis.pogamut.sposh.elements
Class FormalParameters.Parameter
java.lang.Object
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
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
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.