Class Cs.TypeConstraint

java.lang.Object
org.openrewrite.csharp.tree.Cs.TypeConstraint
All Implemented Interfaces:
Cs, Cs.TypeParameterConstraint, org.openrewrite.java.tree.J, org.openrewrite.java.tree.TypedTree, org.openrewrite.Tree
Enclosing interface:
Cs

public static final class Cs.TypeConstraint extends Object implements Cs, Cs.TypeParameterConstraint, org.openrewrite.java.tree.TypedTree
Represents a type constraint in a type parameter's constraint clause. Example: where T : SomeClass where T : IInterface
  • Constructor Details

    • TypeConstraint

      public TypeConstraint()
  • Method Details

    • getType

      public org.openrewrite.java.tree.JavaType getType()
      Specified by:
      getType in interface org.openrewrite.java.tree.TypedTree
    • withType

      public Cs.TypeConstraint withType(@Nullable org.openrewrite.java.tree.JavaType type)
      Specified by:
      withType in interface org.openrewrite.java.tree.TypedTree
    • acceptCSharp

      public <P> org.openrewrite.java.tree.J acceptCSharp(CSharpVisitor<P> v, P p)
      Specified by:
      acceptCSharp in interface Cs
    • getPadding

      public Cs.TypeConstraint.Padding getPadding()