Klasse NaiveASTFlattener

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTVisitor
org.aspectj.org.eclipse.jdt.internal.core.dom.NaiveASTFlattener

public class NaiveASTFlattener extends ASTVisitor
Internal AST visitor for serializing an AST in a quick and dirty fashion. For various reasons the resulting string is not necessarily legal Java code; and even if it is legal Java code, it is not necessarily the string that corresponds to the given AST. Although useless for most purposes, it's fine for generating debug print strings.

Example usage:

    NaiveASTFlattener p = new NaiveASTFlattener();
    node.accept(p);
    String result = p.getResult();
 
Call the reset method to clear the previous result before reusing an existing instance.

Seit:
2.0
  • Felddetails

    • buffer

      protected StringBuffer buffer
      The string buffer into which the serialized representation of the AST is written.
  • Konstruktordetails

    • NaiveASTFlattener

      public NaiveASTFlattener()
      Creates a new AST printer.
  • Methodendetails

    • getResult

      public String getResult()
      Returns the string accumulated in the visit.
      Gibt zurück:
      the serialized
    • reset

      public void reset()
      Resets this printer so that it can be used again.
    • visit

      public boolean visit(AnnotationTypeDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(AnnotationTypeMemberDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(AnonymousClassDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ArrayAccess node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ArrayCreation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ArrayInitializer node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ArrayType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(AssertStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(Assignment node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(Block node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(BlockComment node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Note: LineComment and BlockComment nodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(BooleanLiteral node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(BreakStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(CaseDefaultExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(CastExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(CatchClause node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(CharacterLiteral node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ClassInstanceCreation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(CompilationUnit node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ConditionalExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ConstructorInvocation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ContinueStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(CreationReference node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(Dimension node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(DoStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(EmptyStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(EnhancedForStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(EnumConstantDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(EnumDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ExportsDirective node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ExpressionMethodReference node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ExpressionStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(FieldAccess node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(FieldDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ForStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(GuardedPattern node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(IfStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ImportDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(InfixExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(Initializer node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(InstanceofExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(PatternInstanceofExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(IntersectionType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(Javadoc node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given AST node.

      Unlike other node types, the boolean returned by the default implementation is controlled by a constructor-supplied parameter ASTVisitor(boolean) which is false by default. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
      Siehe auch:
    • visit

      public boolean visit(JavaDocRegion node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given AST node.

      Unlike other node types, the boolean returned by the default implementation is controlled by a constructor-supplied parameter ASTVisitor(boolean) which is false by default. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
      Siehe auch:
    • visit

      public boolean visit(JavaDocTextElement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(LabeledStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(LambdaExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(LineComment node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Note: LineComment and BlockComment nodes are not considered part of main structure of the AST. This method will only be called if a client goes out of their way to visit this kind of node explicitly.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(MarkerAnnotation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(MemberRef node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(MemberValuePair node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(MethodDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(MethodInvocation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(MethodRef node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(MethodRefParameter node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(Modifier node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ModuleDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ModuleModifier node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(NameQualifiedType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(NormalAnnotation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(NullLiteral node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(NullPattern node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(NumberLiteral node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(OpensDirective node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(PackageDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ParameterizedType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ParenthesizedExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(PostfixExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(PrefixExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(PrimitiveType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ProvidesDirective node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ModuleQualifiedName node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(QualifiedName node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(QualifiedType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(RecordDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(RecordPattern node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(RequiresDirective node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ReturnStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SimpleName node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SimpleType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SingleMemberAnnotation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SingleVariableDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(StringLiteral node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SuperConstructorInvocation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SuperFieldAccess node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SuperMethodInvocation node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SuperMethodReference node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SwitchCase node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SwitchExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SwitchStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(SynchronizedStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TagElement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TagProperty node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TextBlock node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and returns true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TextElement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ThisExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(ThrowStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TryStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TypeDeclaration node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TypeDeclarationStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TypeLiteral node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TypeMethodReference node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TypeParameter node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(TypePattern node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(UnionType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(UsesDirective node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may re-implement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(VariableDeclarationExpression node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(VariableDeclarationFragment node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(VariableDeclarationStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(WhileStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(WildcardType node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and return true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped
    • visit

      public boolean visit(YieldStatement node)
      Beschreibung aus Klasse kopiert: ASTVisitor
      Visits the given type-specific AST node.

      The default implementation does nothing and returns true. Subclasses may reimplement.

      Setzt außer Kraft:
      visit in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if the children of this node should be visited, and false if the children of this node should be skipped