Interface Cs

All Superinterfaces:
org.openrewrite.java.tree.J, org.openrewrite.Tree
All Known Subinterfaces:
Cs.Pattern, Cs.QueryClause, Cs.SelectOrGroupClause, Cs.VariableDesignation
All Known Implementing Classes:
Cs.AliasQualifiedName, Cs.AllowsConstraintClause, Cs.AnnotatedStatement, Cs.Argument, Cs.ArrayRankSpecifier, Cs.ArrayType, Cs.AssignmentOperation, Cs.AttributeList, Cs.AwaitExpression, Cs.Binary, Cs.BinaryPattern, Cs.BlockScopeNamespaceDeclaration, Cs.CasePatternSwitchLabel, Cs.CheckedStatement, Cs.ClassDeclaration, Cs.ClassOrStructConstraint, Cs.CollectionExpression, Cs.CompilationUnit, Cs.ConstantPattern, Cs.Constructor, Cs.ConstructorConstraint, Cs.ConstructorInitializer, Cs.ConversionOperatorDeclaration, Cs.DeclarationExpression, Cs.DefaultConstraint, Cs.DefaultExpression, Cs.DefaultSwitchLabel, Cs.DelegateDeclaration, Cs.DestructorDeclaration, Cs.DiscardPattern, Cs.DiscardVariableDesignation, Cs.EnumDeclaration, Cs.EnumMemberDeclaration, Cs.ExpressionStatement, Cs.ExternAlias, Cs.FileScopeNamespaceDeclaration, Cs.FixedStatement, Cs.ForEachVariableLoop, Cs.ForEachVariableLoop.Control, Cs.FromClause, Cs.GroupClause, Cs.ImplicitElementAccess, Cs.IndexerDeclaration, Cs.InitializerExpression, Cs.InterpolatedString, Cs.Interpolation, Cs.IsPattern, Cs.JoinClause, Cs.JoinIntoClause, Cs.Keyword, Cs.Lambda, Cs.LetClause, Cs.ListPattern, Cs.LockStatement, Cs.MethodDeclaration, Cs.NewClass, Cs.NullSafeExpression, Cs.OrderByClause, Cs.Ordering, Cs.ParenthesizedPattern, Cs.ParenthesizedVariableDesignation, Cs.PositionalPatternClause, Cs.PropertyDeclaration, Cs.PropertyPatternClause, Cs.QueryBody, Cs.QueryContinuation, Cs.QueryExpression, Cs.RangeExpression, Cs.RecursivePattern, Cs.RefStructConstraint, Cs.RelationalPattern, Cs.SelectClause, Cs.SingleVariableDesignation, Cs.SlicePattern, Cs.StatementExpression, Cs.Subpattern, Cs.SwitchExpression, Cs.SwitchExpressionArm, Cs.SwitchSection, Cs.SwitchStatement, Cs.TupleElement, Cs.TupleExpression, Cs.TupleType, Cs.TypeConstraint, Cs.TypeParameter, Cs.TypeParameterConstraintClause, Cs.TypePattern, Cs.Unary, Cs.UnaryPattern, Cs.UnsafeStatement, Cs.UsingDirective, Cs.UsingStatement, Cs.VarPattern, Cs.WhereClause, Cs.Yield

public interface Cs extends org.openrewrite.java.tree.J
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Represents a C# alias qualified name, which uses an extern alias to qualify a name.
    static interface 
     
    static final class 
    Represents an `allows` constraint in a where clause.
    static final class 
     
    static final class 
     
    static final class 
     
    static final class 
     
    static final class 
     
    static final class 
     
    static final class 
     
    static final class 
     
    static final class 
    Represents a C# binary pattern that combines two patterns with a logical operator.
    static class 
     
    static final class 
    Represents a pattern-based case label in a switch statement, optionally including a when clause.
    static final class 
    Represents a C# checked statement which enforces overflow checking for arithmetic operations and conversions.
    static final class 
     
    static final class 
    Represents a class/struct constraint in a where clause.
    static final class 
     
    static final class 
     
    static final class 
    Represents a C# constant pattern that matches against literal values or constant expressions.
    static class 
    Represents a C# constructor declaration which may include an optional constructor initializer.
    static final class 
    Represents a constructor constraint in a where clause.
    static final class 
    Represents a constructor initializer which is a call to another constructor, either in the same class (this) or in the base class (base).
    static final class 
    Represents a C# operator conversion declaration that defines custom type conversion behavior.
    static final class 
    A declaration expression node represents a local variable declaration in an expression context.
    static final class 
    Represents a default constraint in a where clause.
    static final class 
    An expression that yields the default value of a type.
    static final class 
    Represents a default case label in a switch statement.
    static final class 
    Represents a C# delegate declaration which defines a type that can reference methods.
    static class 
    Represents a C# destructor which is a method called before an object is destroyed by the garbage collector.
    static final class 
    Represents a C# discard pattern (_), which matches any value and discards it.
    static final class 
    Represents a discard designation in pattern matching expressions, indicated by an underscore (_).
    static final class 
    Represents a C# enum declaration, including optional modifiers, attributes, and enum members.
    static final class 
    Represents a C# enum member declaration, including optional attributes and initializer.
    static final class 
     
    static final class 
     
    static class 
     
    static final class 
    Represents a C# fixed statement which pins a moveable variable at a memory location.
    static final class 
     
    static final class 
    Represents a LINQ from clause that introduces a range variable and its source collection.
    static final class 
    Represents a group clause in a LINQ query.
    static final class 
    Represents implicit element access in C# which allows accessing elements without specifying the element accessor target.
    static final class 
    Represents a C# indexer declaration which allows objects to be indexed like arrays.
    static final class 
    Represents an initializer expression that consists of a list of expressions, typically used in array or collection initialization contexts.
    static class 
     
    static class 
     
    static final class 
    Represents a C# is pattern expression that performs pattern matching.
    static final class 
    Represents a C# join clause in a LINQ query expression.
    static final class 
    Represents the 'into' portion of a group join clause in C# LINQ syntax.
    static final class 
     
    static final class 
     
    static final class 
    Represents a let clause in a C# LINQ query expression that introduces a new range variable based on a computation.
    static final class 
    Represents a C# list pattern that matches elements in a list or array against a sequence of patterns.
    static final class 
    Represents a C# lock statement which provides thread synchronization.
    static final class 
     
    static final class 
    Represents a C# new class instantiation expression, which can optionally include an object/collection initializer.
    static class 
     
    static final class 
    Represents a C# LINQ orderby clause that specifies the ordering of results in a query.
    static final class 
    Represents a single ordering clause within C# orderby expression.
    static final class 
    Represents a C# parenthesized pattern expression that groups a nested pattern.
    static final class 
    Represents a parenthesized list of variable declarations used in deconstruction patterns.
    static interface 
    Base interface for all C# pattern types that can appear on the right-hand side of an 'is' expression.
    static final class 
    Represents a positional pattern clause in C# pattern matching, which matches the deconstructed parts of an object.
    static class 
     
    static final class 
    Represents a property pattern clause in C# pattern matching, which matches against object properties.
    static final class 
    Represents the body of a LINQ query expression, consisting of the query clauses and a final select or group clause.
    static interface 
     
    static final class 
    Represents a LINQ query continuation using the 'into' keyword, which allows query results to be further processed in subsequent query clauses.
    static final class 
    Represents a C# LINQ query expression that provides SQL-like syntax for working with collections.
    static final class 
    Represents a C# range expression which creates a Range value representing a sequence of indices.
    static final class 
    Represents a C# recursive pattern that can match nested object structures, including property patterns and positional patterns.
    static final class 
    Represents a ref struct constraint in a where clause.
    static final class 
    Represents a C# relational pattern that matches values using comparison operators.
    static final class 
    Represents a select clause in a LINQ expression in C#.
    static interface 
     
    static final class 
    Represents a single variable declaration within a declaration expression.
    static final class 
    Represents a C# slice pattern that matches sequences with arbitrary elements between fixed elements.
    static final class 
     
    static final class 
    Represents a subpattern in C# pattern matching, which can appear in property patterns or positional patterns.
    static final class 
    Represents a C# switch expression which provides a concise way to handle multiple patterns with corresponding expressions.
    static final class 
    Represents a single case arm in a switch expression, consisting of a pattern, optional when clause, and result expression.
    static interface 
     
    static final class 
    Represents a switch statement section containing one or more case labels followed by a list of statements.
    static final class 
    Represents a C# switch statement for control flow based on pattern matching and case labels.
    static class 
    Represents a single element within a tuple type, which may include an optional identifier for named tuple elements.
    static final class 
    Represents a tuple expression in C#.
    static class 
    Represents a C# tuple type specification, which allows grouping multiple types into a single type.
    static final class 
    Represents a type constraint in a type parameter's constraint clause.
    static final class 
    Represents a C# type parameter in generic type declarations, including optional variance and constraints.
    static interface 
     
    static final class 
     
    static final class 
    Represents a C# type pattern, which matches a value against a type and optionally assigns it to a new variable.
    static final class 
     
    static final class 
    Represents a unary pattern in C#, which negates another pattern using the "not" keyword.
    static final class 
    Represents a C# unsafe statement block which allows direct memory manipulation and pointer operations.
    static class 
     
    static final class 
     
    static interface 
    Interface for variable designators in declaration expressions.
    static final class 
    Represents a var pattern that is used in switch statement pattern matching.
    static final class 
    Represents a C# LINQ where clause that filters elements in a query based on a condition.
    static final class 
    Represents a C# yield statement which can either return a value or break from an iterator.

    Nested classes/interfaces inherited from interface org.openrewrite.java.tree.J

    org.openrewrite.java.tree.J.AnnotatedType, org.openrewrite.java.tree.J.Annotation, org.openrewrite.java.tree.J.ArrayAccess, org.openrewrite.java.tree.J.ArrayDimension, org.openrewrite.java.tree.J.Assert, org.openrewrite.java.tree.J.Assignment, org.openrewrite.java.tree.J.Block, org.openrewrite.java.tree.J.Break, org.openrewrite.java.tree.J.Case, org.openrewrite.java.tree.J.Continue, org.openrewrite.java.tree.J.ControlParentheses<J2 extends org.openrewrite.java.tree.J>, org.openrewrite.java.tree.J.DoWhileLoop, org.openrewrite.java.tree.J.Empty, org.openrewrite.java.tree.J.EnumValue, org.openrewrite.java.tree.J.EnumValueSet, org.openrewrite.java.tree.J.FieldAccess, org.openrewrite.java.tree.J.ForEachLoop, org.openrewrite.java.tree.J.ForLoop, org.openrewrite.java.tree.J.Identifier, org.openrewrite.java.tree.J.If, org.openrewrite.java.tree.J.Import, org.openrewrite.java.tree.J.InstanceOf, org.openrewrite.java.tree.J.IntersectionType, org.openrewrite.java.tree.J.Label, org.openrewrite.java.tree.J.Literal, org.openrewrite.java.tree.J.MemberReference, org.openrewrite.java.tree.J.MethodInvocation, org.openrewrite.java.tree.J.Modifier, org.openrewrite.java.tree.J.MultiCatch, org.openrewrite.java.tree.J.NewArray, org.openrewrite.java.tree.J.NullableType, org.openrewrite.java.tree.J.Package, org.openrewrite.java.tree.J.ParameterizedType, org.openrewrite.java.tree.J.Parentheses<J2 extends org.openrewrite.java.tree.J>, org.openrewrite.java.tree.J.ParenthesizedTypeTree, org.openrewrite.java.tree.J.Primitive, org.openrewrite.java.tree.J.Return, org.openrewrite.java.tree.J.Switch, org.openrewrite.java.tree.J.Synchronized, org.openrewrite.java.tree.J.Ternary, org.openrewrite.java.tree.J.Throw, org.openrewrite.java.tree.J.Try, org.openrewrite.java.tree.J.TypeCast, org.openrewrite.java.tree.J.TypeParameters, org.openrewrite.java.tree.J.Unknown, org.openrewrite.java.tree.J.VariableDeclarations, org.openrewrite.java.tree.J.WhileLoop, org.openrewrite.java.tree.J.Wildcard
  • Method Summary

    Modifier and Type
    Method
    Description
    default <R extends org.openrewrite.Tree, P>
    R
    accept(org.openrewrite.TreeVisitor<R,P> v, P p)
     
    <P> @Nullable org.openrewrite.java.tree.J
     
    default <P> boolean
    isAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)
     

    Methods inherited from interface org.openrewrite.java.tree.J

    acceptJava, getComments, getPrefix, print, printTrimmed, withComments, withPrefix

    Methods inherited from interface org.openrewrite.Tree

    cast, getId, getMarkers, isScope, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed, withId, withMarkers
  • Method Details

    • accept

      default <R extends org.openrewrite.Tree, P> R accept(org.openrewrite.TreeVisitor<R,P> v, P p)
      Specified by:
      accept in interface org.openrewrite.java.tree.J
      Specified by:
      accept in interface org.openrewrite.Tree
    • isAcceptable

      default <P> boolean isAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)
      Specified by:
      isAcceptable in interface org.openrewrite.java.tree.J
      Specified by:
      isAcceptable in interface org.openrewrite.Tree
    • acceptCSharp

      <P> @Nullable org.openrewrite.java.tree.J acceptCSharp(CSharpVisitor<P> v, P p)