Class PathExecutableOperandType
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.execOperand.PathExecutableOperandType
-
- All Implemented Interfaces:
IExecutableOperandType
class PathExecutableOperandType extends java.lang.Object implements IExecutableOperandType
An executable operand type forPath.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description static IExecutableOperandTypeINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privatePathExecutableOperandType()Prevents external creation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringconvert(java.lang.Object object)Converts an evaluated object into a string representing the name of the program to execute.static java.lang.Stringconvert(Path path)Converts a path into a string.booleansameType(java.lang.Object object)Returns whether the object is of the sametypeas this class can process.booleansameType(TypeDescriptor<?> type)Returns whether the giventypeis the same as this class can process.
-
-
-
Field Detail
-
INSTANCE
public static final IExecutableOperandType INSTANCE
-
-
Method Detail
-
convert
public static java.lang.String convert(Path path)
Converts a path into a string.- Parameters:
path- the path to be converted- Returns:
- the converted path
-
convert
public java.lang.String convert(java.lang.Object object)
Description copied from interface:IExecutableOperandTypeConverts an evaluated object into a string representing the name of the program to execute.- Specified by:
convertin interfaceIExecutableOperandType- Parameters:
object- the evaluated object- Returns:
- the string representing the external program
-
sameType
public boolean sameType(TypeDescriptor<?> type)
Description copied from interface:IExecutableOperandTypeReturns whether the giventypeis the same as this class can process.- Specified by:
sameTypein interfaceIExecutableOperandType- Parameters:
type- the type to be checked- Returns:
trueif it is the same,falseelse
-
sameType
public boolean sameType(java.lang.Object object)
Description copied from interface:IExecutableOperandTypeReturns whether the object is of the sametypeas this class can process.- Specified by:
sameTypein interfaceIExecutableOperandType- Parameters:
object- tht object to be checked- Returns:
trueif it is the same,falseelse
-
-