Class Pattern<E>

java.lang.Object
org.variantsync.diffdetective.editclass.Pattern<E>
Type Parameters:
E - Type of elements on which the pattern may be matched.
Direct Known Subclasses:
EditClass

public abstract class Pattern<E> extends Object
Abstract class for edit patterns. A pattern has a unique name and may be matched on domain elements of a given type.
Author:
Sören Viegener, Paul Bittner
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
    The name that uniquely identifies this pattern.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new pattern with the given name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of this pattern.
    abstract boolean
    Returns true iff the given domain element matches this pattern.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      protected final String name
      The name that uniquely identifies this pattern.
  • Constructor Details

    • Pattern

      public Pattern(String name)
      Create a new pattern with the given name.
      Parameters:
      name - Unique identifier.
  • Method Details

    • matches

      public abstract boolean matches(E e)
      Returns true iff the given domain element matches this pattern.
    • getName

      public String getName()
      Returns the name of this pattern.
    • toString

      public String toString()
      Overrides:
      toString in class Object