Class StatementLineNumberVisitor

java.lang.Object
com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
com.vaadin.copilot.plugins.themeeditor.utils.StatementLineNumberVisitor
All Implemented Interfaces:
com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>

public class StatementLineNumberVisitor extends com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
Implementation of GenericVisitor that finds Statement at given line of source code file.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.AssertStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.BlockStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.BreakStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.ContinueStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.DoStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.EmptyStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.ExpressionStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.ForEachStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.ForStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.IfStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.LabeledStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.LocalClassDeclarationStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.LocalRecordDeclarationStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.ReturnStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.SwitchStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.SynchronizedStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.ThrowStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.TryStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.UnparsableStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.WhileStmt n, Integer arg)
     
    com.github.javaparser.ast.stmt.Statement
    visit(com.github.javaparser.ast.stmt.YieldStmt n, Integer arg)
     

    Methods inherited from class com.github.javaparser.ast.visitor.GenericVisitorAdapter

    visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatementLineNumberVisitor

      public StatementLineNumberVisitor()
  • Method Details

    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.AssertStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.BlockStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.BreakStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.ContinueStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.DoStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.EmptyStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.ForEachStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.ForStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.IfStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.LabeledStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.ReturnStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.SwitchStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.SynchronizedStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.ThrowStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.TryStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.LocalClassDeclarationStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.LocalRecordDeclarationStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.WhileStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.UnparsableStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.YieldStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>
    • visit

      public com.github.javaparser.ast.stmt.Statement visit(com.github.javaparser.ast.stmt.ExpressionStmt n, Integer arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.GenericVisitor<com.github.javaparser.ast.stmt.Statement,Integer>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<com.github.javaparser.ast.stmt.Statement,Integer>