Class Cs.MethodDeclaration

java.lang.Object
org.openrewrite.csharp.tree.Cs.MethodDeclaration
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.MethodDeclaration extends Object implements Cs, org.openrewrite.java.tree.Statement, org.openrewrite.java.tree.TypedTree
  • Constructor Details

    • MethodDeclaration

      public MethodDeclaration()
  • Method Details

    • getExplicitInterfaceSpecifier

      public org.openrewrite.java.tree.TypeTree getExplicitInterfaceSpecifier()
    • withExplicitInterfaceSpecifier

      public Cs.MethodDeclaration withExplicitInterfaceSpecifier(org.openrewrite.java.tree.TypeTree explicitInterfaceSpecifier)
    • getParameters

      public List<org.openrewrite.java.tree.Statement> getParameters()
    • withParameters

      public Cs.MethodDeclaration withParameters(List<org.openrewrite.java.tree.Statement> parameters)
    • withMethodType

      public Cs.MethodDeclaration withMethodType(@Nullable org.openrewrite.java.tree.JavaType.Method type)
    • getTypeParameterConstraintClauses

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

      public Cs.MethodDeclaration withTypeParameterConstraintClauses(List<Cs.TypeParameterConstraintClause> typeParameterConstraintClauses)
    • getType

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

      public Cs.MethodDeclaration 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.Statement getCoordinates()
      Specified by:
      getCoordinates in interface org.openrewrite.java.tree.Statement
    • getPadding

      public Cs.MethodDeclaration.Padding getPadding()