Class StructuralFeatureCheck

  • All Implemented Interfaces:
    ISearchOperation

    public class StructuralFeatureCheck
    extends java.lang.Object
    implements ISearchOperation
    A simple operation that checks whether a EStructuralFeature connects two selected variables.
    No Extend:
    This class is not intended to be subclassed by clients.
    • Constructor Summary

      Constructors 
      Constructor Description
      StructuralFeatureCheck​(int sourcePosition, int targetPosition, org.eclipse.emf.ecore.EStructuralFeature feature)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ISearchOperation.ISearchOperationExecutor createExecutor()
      Initializes a new operation executor for the given operation.
      java.util.List<java.lang.Integer> getVariablePositions()  
      java.lang.String toString()  
      java.lang.String toString​(java.util.function.Function<java.lang.Integer,​java.lang.String> variableMapping)
      Creates a string representation of the search operation by replacing the variable numbers according to the parameter function.
      • Methods inherited from class java.lang.Object

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

      • StructuralFeatureCheck

        public StructuralFeatureCheck​(int sourcePosition,
                                      int targetPosition,
                                      org.eclipse.emf.ecore.EStructuralFeature feature)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.util.function.Function<java.lang.Integer,​java.lang.String> variableMapping)
        Description copied from interface: ISearchOperation
        Creates a string representation of the search operation by replacing the variable numbers according to the parameter function. It is expected that the provided function does return a non-null value for each variable index that is returned by ISearchOperation.getVariablePositions(); otherwise a NullPointerException will be thrown during the calculation of the string.
        Specified by:
        toString in interface ISearchOperation
      • getVariablePositions

        public java.util.List<java.lang.Integer> getVariablePositions()
        Specified by:
        getVariablePositions in interface ISearchOperation
        Returns:
        the ordered list of the variable numbers that are affected by the search operation