Codota Logo
SubscriptionVisitor.visit
Code IndexAdd Codota to your IDE (free)

How to use
visit
method
in
org.sonar.java.ast.visitors.SubscriptionVisitor

Best Java code snippets using org.sonar.java.ast.visitors.SubscriptionVisitor.visit (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.codehaus.sonar-plugins.java/java-squid

protected void scanTree(Tree tree) {
 nodesToVisit = nodesToVisit();
 visit(tree);
}
origin: org.codehaus.sonar-plugins.java/java-squid

private void visitChildren(Tree tree) {
 JavaTree javaTree = (JavaTree) tree;
 if (!javaTree.isLeaf()) {
  for (Iterator<Tree> iter = javaTree.childrenIterator(); iter.hasNext(); ) {
   Tree next = iter.next();
   if (next != null) {
    visit(next);
   }
  }
 }
}
origin: SonarSource/sonar-java

private void visitChildren(Tree tree) {
 JavaTree javaTree = (JavaTree) tree;
 if (!javaTree.isLeaf()) {
  for (Tree next : javaTree.getChildren()) {
   if (next != null) {
    visit(next);
   }
  }
 }
}
origin: org.sonarsource.java/java-frontend

protected void scanTree(Tree tree) {
 if(nodesToVisit == null) {
  List<Tree.Kind> kinds = nodesToVisit();
  if(kinds.isEmpty()) {
   nodesToVisit = EnumSet.noneOf(Tree.Kind.class);
  } else {
   nodesToVisit = EnumSet.copyOf(kinds);
  }
 }
 visitToken = isVisitingTokens();
 visitTrivia = isVisitingTrivia();
 visit(tree);
}
origin: SonarSource/sonar-java

protected void scanTree(Tree tree) {
 if(nodesToVisit == null) {
  List<Tree.Kind> kinds = nodesToVisit();
  if(kinds.isEmpty()) {
   nodesToVisit = EnumSet.noneOf(Tree.Kind.class);
  } else {
   nodesToVisit = EnumSet.copyOf(kinds);
  }
 }
 visitToken = isVisitingTokens();
 visitTrivia = isVisitingTrivia();
 visit(tree);
}
origin: org.sonarsource.java/java-frontend

private void visitChildren(Tree tree) {
 JavaTree javaTree = (JavaTree) tree;
 if (!javaTree.isLeaf()) {
  for (Tree next : javaTree.getChildren()) {
   if (next != null) {
    visit(next);
   }
  }
 }
}
origin: org.sonarsource.java/java-squid

private void visitChildren(Tree tree) {
 JavaTree javaTree = (JavaTree) tree;
 if (!javaTree.isLeaf()) {
  for (Tree next : javaTree.children()) {
   if (next != null) {
    visit(next);
   }
  }
 }
}
origin: org.sonarsource.java/java-squid

protected void scanTree(Tree tree) {
 nodesToVisit = nodesToVisit();
 visitToken = isVisitingTokens();
 visitTrivia = isVisitingTrivia();
 visit(tree);
}
org.sonar.java.ast.visitorsSubscriptionVisitorvisit

Popular methods of SubscriptionVisitor

  • isSubscribed
  • leaveNode
  • nodesToVisit
  • scanFile
  • scanTree
  • visitChildren
  • visitNode
  • visitToken
  • visitTrivia
  • isVisitingTokens
  • isVisitingTrivia
  • leaveFile
  • isVisitingTrivia,
  • leaveFile,
  • setContext,
  • visitTokens

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • BoxLayout (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now