Class PathExecutableOperandType

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PathExecutableOperandType()
      Prevents external creation.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String convert​(java.lang.Object object)
      Converts an evaluated object into a string representing the name of the program to execute.
      static java.lang.String convert​(Path path)
      Converts a path into a string.
      boolean sameType​(java.lang.Object object)
      Returns whether the object is of the same type as this class can process.
      boolean sameType​(TypeDescriptor<?> type)
      Returns whether the given type is the same as this class can process.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathExecutableOperandType

        private PathExecutableOperandType()
        Prevents external creation.
    • 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: IExecutableOperandType
        Converts an evaluated object into a string representing the name of the program to execute.
        Specified by:
        convert in interface IExecutableOperandType
        Parameters:
        object - the evaluated object
        Returns:
        the string representing the external program
      • sameType

        public boolean sameType​(TypeDescriptor<?> type)
        Description copied from interface: IExecutableOperandType
        Returns whether the given type is the same as this class can process.
        Specified by:
        sameType in interface IExecutableOperandType
        Parameters:
        type - the type to be checked
        Returns:
        true if it is the same, false else
      • sameType

        public boolean sameType​(java.lang.Object object)
        Description copied from interface: IExecutableOperandType
        Returns whether the object is of the same type as this class can process.
        Specified by:
        sameType in interface IExecutableOperandType
        Parameters:
        object - tht object to be checked
        Returns:
        true if it is the same, false else