Class Cs.ClassDeclaration

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

public static final class Cs.ClassDeclaration extends Object implements Cs, org.openrewrite.java.tree.Statement, org.openrewrite.java.tree.TypedTree
  • Constructor Details

    • ClassDeclaration

      public ClassDeclaration()
  • Method Details

    • getKind

      public org.openrewrite.java.tree.J.ClassDeclaration.Kind.Type getKind()
    • withKind

      public Cs.ClassDeclaration withKind(org.openrewrite.java.tree.J.ClassDeclaration.Kind.Type type)
    • getTypeParameters

      public @Nullable List<Cs.TypeParameter> getTypeParameters()
    • withTypeParameters

      public Cs.ClassDeclaration withTypeParameters(@Nullable List<Cs.TypeParameter> typeParameters)
    • getPrimaryConstructor

      public @Nullable List<org.openrewrite.java.tree.Statement> getPrimaryConstructor()
    • withPrimaryConstructor

      public Cs.ClassDeclaration withPrimaryConstructor(@Nullable List<org.openrewrite.java.tree.Statement> primaryConstructor)
    • getExtendings

      public @Nullable org.openrewrite.java.tree.TypeTree getExtendings()
    • withExtendings

      public Cs.ClassDeclaration withExtendings(@Nullable org.openrewrite.java.tree.TypeTree extendings)
    • getImplementings

      public @Nullable List<org.openrewrite.java.tree.TypeTree> getImplementings()
    • withImplementings

      public Cs.ClassDeclaration withImplementings(@Nullable List<org.openrewrite.java.tree.TypeTree> implementings)
    • getTypeParameterConstraintClauses

      public @Nullable List<Cs.TypeParameterConstraintClause> getTypeParameterConstraintClauses()
    • withTypeParameterConstraintClauses

      public Cs.ClassDeclaration withTypeParameterConstraintClauses(@Nullable List<Cs.TypeParameterConstraintClause> typeParameterConstraintClauses)
    • withType

      public Cs.ClassDeclaration 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
    • getCoordinates

      public org.openrewrite.java.tree.CoordinateBuilder.ClassDeclaration getCoordinates()
      Specified by:
      getCoordinates in interface org.openrewrite.java.tree.Statement
    • getPadding

      public Cs.ClassDeclaration.Padding getPadding()