Class Dependency.Builder

Enclosing class:
Dependency

public static class Dependency.Builder extends BaseAttribute.Builder<Dependency,Dependency.Builder>
Builder for Dependency.
  • Constructor Details

    • Builder

      public Builder(String relationship, int governorTokenIndex, int dependencyTokenIndex)
      Constructs a builder from the required properties.
      Parameters:
      relationship - the relationship label on this dependency.
      governorTokenIndex - the token index of the governing token.
      dependencyTokenIndex - the token index of the dependency token.
    • Builder

      public Builder(Dependency toCopy)
      Constructs a builder from an existing Dependency.
      Parameters:
      toCopy - the object to copy
  • Method Details