Class JContainer<T>

java.lang.Object
org.openrewrite.java.tree.JContainer<T>
Type Parameters:
T - The type of the inner list of elements.

public class JContainer<T> extends Object
AST elements that contain lists of trees with some delimiter like parentheses, e.g. method arguments, annotation arguments, catch variable declarations.

Sometimes the delimiter surrounds the list. Parentheses surround method arguments. Sometimes the delimiter only precedes the list. Throws statements on method declarations are preceded by the "throws" keyword.

Sometimes containers are optional in the grammar, as in the case of annotation arguments. Sometimes they are required, as in the case of method invocation arguments.

  • Method Details