Tabnine Logo
LocalDeclarationAnalyzer
Code IndexAdd Tabnine to your IDE (free)

How to use
LocalDeclarationAnalyzer
in
org.eclipse.jdt.internal.corext.refactoring.surround

Best Java code snippets using org.eclipse.jdt.internal.corext.refactoring.surround.LocalDeclarationAnalyzer (Showing top 8 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static VariableDeclaration[] perform(ASTNode parent, Selection selection) {
  LocalDeclarationAnalyzer analyzer= new LocalDeclarationAnalyzer(selection);
  parent.accept(analyzer);
  return analyzer.fAffectedLocals.toArray(new VariableDeclaration[analyzer.fAffectedLocals.size()]);
}
origin: org.eclipse/org.eclipse.jdt.ui

public boolean visit(SimpleName node) {
  IVariableBinding binding= null; 
  if (node.isDeclaration() || !considerNode(node) || (binding= ASTNodes.getLocalVariableBinding(node)) == null)
    return false;
  handleReferenceToLocal(node, binding);
  return true;
}    

origin: org.eclipse/org.eclipse.jdt.ui

private void handleReferenceToLocal(SimpleName node, IVariableBinding binding) {
  VariableDeclaration declaration= ASTNodes.findVariableDeclaration(binding, node);
  if (declaration != null && fSelection.covers(declaration))
    addLocalDeclaration(declaration);
}

origin: org.eclipse/org.eclipse.jdt.ui

  invalidSelection(RefactoringCoreMessages.SurroundWithTryCatchAnalyzer_onlyStatements); 
fLocals= LocalDeclarationAnalyzer.perform(enclosingNode, getSelection());
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void handleReferenceToLocal(SimpleName node, IVariableBinding binding) {
  VariableDeclaration declaration= ASTNodes.findVariableDeclaration(binding, node);
  if (declaration != null && fSelection.covers(declaration))
    addLocalDeclaration(declaration);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  invalidSelection(RefactoringCoreMessages.SurroundWithTryCatchAnalyzer_onlyStatements);
fLocals= LocalDeclarationAnalyzer.perform(enclosingNode, getSelection());
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean visit(SimpleName node) {
  IVariableBinding binding= null;
  if (node.isDeclaration() || !considerNode(node) || (binding= ASTNodes.getLocalVariableBinding(node)) == null)
    return false;
  handleReferenceToLocal(node, binding);
  return true;
}
origin: org.eclipse/org.eclipse.jdt.ui

public static VariableDeclaration[] perform(BodyDeclaration parent, Selection selection) {
  LocalDeclarationAnalyzer analyzer= new LocalDeclarationAnalyzer(selection);
  parent.accept(analyzer);
  return (VariableDeclaration[]) analyzer.fAffectedLocals.toArray(new VariableDeclaration[analyzer.fAffectedLocals.size()]);
}
org.eclipse.jdt.internal.corext.refactoring.surroundLocalDeclarationAnalyzer

Most used methods

  • <init>
  • addLocalDeclaration
  • considerNode
  • handleReferenceToLocal
  • perform

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Join (org.hibernate.mapping)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now