Class ReflectionOperationParameter
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.ReflectionOperationParameter
-
- All Implemented Interfaces:
IVariable,IResolvable,IMetaParameterDeclaration
class ReflectionOperationParameter extends java.lang.Object implements IMetaParameterDeclaration
Implements a simple operation parameter descriptor filled by reflection.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private Expressiondfltprivate java.lang.Stringnameprivate TypeDescriptor<?>type
-
Constructor Summary
Constructors Constructor Description ReflectionOperationParameter(java.lang.String name, TypeDescriptor<?> type, Expression dflt)Creates a reflection operation parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetExpression()Get the (default) value of this variable.java.lang.StringgetName()Returns the name of the resolvable.TypeDescriptor<?>getType()Returns the type of this variable.java.lang.StringtoString()
-
-
-
Field Detail
-
name
private java.lang.String name
-
type
private TypeDescriptor<?> type
-
dflt
private Expression dflt
-
-
Constructor Detail
-
ReflectionOperationParameter
ReflectionOperationParameter(java.lang.String name, TypeDescriptor<?> type, Expression dflt)Creates a reflection operation parameter.- Parameters:
name- the name of the parametertype- the type of the parameterdflt- the default value expression, may be null for none, must comply withtype
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IResolvableReturns the name of the resolvable.- Specified by:
getNamein interfaceIResolvable- Returns:
- the name of the resolvable
-
getType
public TypeDescriptor<?> getType()
Description copied from interface:IMetaParameterDeclarationReturns the type of this variable.- Specified by:
getTypein interfaceIMetaParameterDeclaration- Returns:
- the type of this variable
-
getExpression
public Expression getExpression()
Description copied from interface:IMetaParameterDeclarationGet the (default) value of this variable.- Specified by:
getExpressionin interfaceIMetaParameterDeclaration- Returns:
- The (default) value of this variable of null if this variable is unassigned.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-