Class IvmlToStringConversionOperationDescriptor
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.OperationDescriptor
-
- net.ssehub.easy.instantiation.core.model.vilTypes.configuration.IvmlOperationDescriptor
-
- net.ssehub.easy.instantiation.core.model.vilTypes.configuration.IvmlConversionOperationDescriptor
-
- net.ssehub.easy.instantiation.core.model.vilTypes.configuration.IvmlToStringConversionOperationDescriptor
-
- All Implemented Interfaces:
IMetaOperation
public class IvmlToStringConversionOperationDescriptor extends IvmlConversionOperationDescriptor
Performs a conversion of an object (usually anIvmlTypeDescriptorto a String. EmulatesPseudoString.convertAny(Object), in particular forVarModelIdentifierExpressionhaving a specific type assigned.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.OperationDescriptor
OperationDescriptor.AliasType
-
Nested classes/interfaces inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IMetaOperation
IMetaOperation.CompatibilityResult
-
-
Field Summary
-
Fields inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.configuration.IvmlConversionOperationDescriptor
NAME
-
Fields inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.OperationDescriptor
CONSTRUCTOR_NAME, EMPTY_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description IvmlToStringConversionOperationDescriptor()For serialization.IvmlToStringConversionOperationDescriptor(TypeDescriptor<?> declaringType)Creates a conversion to string operation descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(java.lang.Object... args)Invokes the specified operation.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.configuration.IvmlConversionOperationDescriptor
isCompatible
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.configuration.IvmlOperationDescriptor
convertArgument, createParameterList, getDeclaringTypeNameFallback, getJavaSignature, initializeParameters, initializeReturnType, isFirstParameterOperand, isPlaceholder, isStatic, storeArtifactsBeforeExecution, useGenericParameterAsReturn, useParameterAsReturn
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.OperationDescriptor
acceptsImplicitParameters, acceptsNamedParameters, allowsAggregation, composeExceptionMessage, convertVariables, flatten, getAliasType, getDeclaringType, getDeclaringTypeName, getName, getOperationType, getParameter, getParameter, getParameterCount, getParameterType, getRequiredParameterCount, getReturnType, getSignature, getStoredName, isAlias, isConstructor, isConstructor, isConversion, isGenericCollectionOperation, isIteratingCollectionOperation, isOclCompliant, isOperation, isSameSignature, isTypeSelect, requiresDynamicExpressionProcessing, setCharacteristics, setParameters, setReturnType, specializeFor, throwIncompatibleParameter, toString, trace, useAny, useOperandTypeAsParameter
-
-
-
-
Constructor Detail
-
IvmlToStringConversionOperationDescriptor
IvmlToStringConversionOperationDescriptor()
For serialization.
-
IvmlToStringConversionOperationDescriptor
IvmlToStringConversionOperationDescriptor(TypeDescriptor<?> declaringType)
Creates a conversion to string operation descriptor.- Parameters:
declaringType- the declaring type
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object... args) throws VilExceptionDescription copied from interface:IMetaOperationInvokes the specified operation. This method does not consider possible unnamed parameter rather than the underlying Java parameter. In case ofIMetaOperation.acceptsNamedParameters()the caller must ensure that the last parameter is amap<String, Object>containing the named parameters.- Specified by:
invokein interfaceIMetaOperation- Overrides:
invokein classIvmlConversionOperationDescriptor- Parameters:
args- the arguments, in case of non-static operations the first argument must be the object to execute on- Returns:
- the result of the execution
- Throws:
VilException- if the invocation fails- See Also:
IMetaOperation.isCompatible(java.lang.Class<?>, java.lang.Object...)
-
-