Class ContextDependency

java.lang.Object
no.sikt.graphitron.generators.dependencies.ContextDependency
All Implemented Interfaces:
Comparable<Dependency>, Dependency

public class ContextDependency extends Object implements Dependency, Comparable<Dependency>
A dependency on DSLContext.
  • Method Details

    • getInstance

      public static ContextDependency getInstance()
      Returns:
      Get the singleton DSLContext dependency.
    • getSpec

      public no.sikt.graphitron.javapoet.FieldSpec getSpec()
      Specified by:
      getSpec in interface Dependency
      Returns:
      Javapoet FieldSpec for a dependency of this type.
    • getDeclarationCode

      public no.sikt.graphitron.javapoet.CodeBlock getDeclarationCode()
      Specified by:
      getDeclarationCode in interface Dependency
      Returns:
      CodeBlock that declares a dependency of this type.
    • compareTo

      public int compareTo(@NotNull @NotNull Dependency o)
      Specified by:
      compareTo in interface Comparable<Dependency>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object