Class Transform.NodeClassFilter

    • Constructor Summary

      Constructors 
      Constructor Description
      NodeClassFilter​(java.lang.String classFile, boolean keepOnlySame)
      Creates a new instance.
      NodeClassFilter​(java.lang.String classFile, java.lang.String keepOnlySame)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(int i, int j)
      Tells if the arc (i,j) has to be accepted or not.
      boolean accept​(int i, int j, Label label)
      Tells if the arc (i,j) with label label has to be accepted or not.
      • Methods inherited from class java.lang.Object

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

      • NodeClassFilter

        public NodeClassFilter​(java.lang.String classFile,
                               boolean keepOnlySame)
        Creates a new instance.
        Parameters:
        classFile - name of the class file.
        keepOnlySame - whether to keep nodes in the same class.
      • NodeClassFilter

        public NodeClassFilter​(java.lang.String classFile,
                               java.lang.String keepOnlySame)
        Creates a new instance.

        This constructor has the same arguments as NodeClassFilter(String, boolean), but it can be used with an ObjectParser.

        Parameters:
        classFile - name of the class file.
        keepOnlySame - whether to keep nodes in the same class.
    • Method Detail

      • accept

        public boolean accept​(int i,
                              int j)
        Description copied from interface: Transform.ArcFilter
        Tells if the arc (i,j) has to be accepted or not.
        Specified by:
        accept in interface Transform.ArcFilter
        Parameters:
        i - the source of the arc.
        j - the destination of the arc.
        Returns:
        if the arc has to be accepted.
      • accept

        public boolean accept​(int i,
                              int j,
                              Label label)
        Description copied from interface: Transform.LabelledArcFilter
        Tells if the arc (i,j) with label label has to be accepted or not.
        Specified by:
        accept in interface Transform.LabelledArcFilter
        Parameters:
        i - the source of the arc.
        j - the destination of the arc.
        label - the label of the arc.
        Returns:
        if the arc has to be accepted.