Tabnine Logo
ForwardingAstVisitor.visitVariableDefinitionEntry
Code IndexAdd Tabnine to your IDE (free)

How to use
visitVariableDefinitionEntry
method
in
lombok.ast.ForwardingAstVisitor

Best Java code snippets using lombok.ast.ForwardingAstVisitor.visitVariableDefinitionEntry (Showing top 4 results out of 315)

origin: com.amazon.device.tools.lint/lint-checks

@Override
public boolean visitVariableDefinitionEntry(VariableDefinitionEntry node) {
  if (mCurrentMethod != null) {
    if (mLocalVars == null) {
      mLocalVars = Sets.newHashSet();
    }
    mLocalVars.add(node.astName().astValue());
  } else {
    if (mFields == null) {
      mFields = Sets.newHashSet();
    }
    mFields.add(node.astName().astValue());
  }
  return super.visitVariableDefinitionEntry(node);
}
origin: massivedisaster/ActivityFragmentManager

@Override
public boolean visitVariableDefinitionEntry(VariableDefinitionEntry node) {
  Expression initializer = node.astInitializer();
  if (initializer instanceof VariableReference) {
    JavaParser.ResolvedNode resolved = mContext.resolve(initializer);
    //noinspection SuspiciousMethodCalls
    if (resolved != null && mVariables.contains(resolved)) {
      JavaParser.ResolvedNode resolvedVariable = mContext.resolve(node);
      if (resolvedVariable instanceof JavaParser.ResolvedVariable) {
        JavaParser.ResolvedVariable variable = (JavaParser.ResolvedVariable) resolvedVariable;
        mVariables.add(variable);
      }
    }
  }
  return super.visitVariableDefinitionEntry(node);
}
origin: com.amazon.device.tools.lint/lint-checks

@Override
public boolean visitVariableDefinitionEntry(VariableDefinitionEntry node) {
  Expression initializer = node.astInitializer();
  if (initializer instanceof VariableReference) {
    ResolvedNode resolved = mContext.resolve(initializer);
    //noinspection SuspiciousMethodCalls
    if (resolved != null && mVariables.contains(resolved)) {
      ResolvedNode resolvedVariable = mContext.resolve(node);
      if (resolvedVariable instanceof ResolvedVariable) {
        ResolvedVariable variable = (ResolvedVariable) resolvedVariable;
        mVariables.add(variable);
      } else if (resolvedVariable instanceof ResolvedField) {
        mEscapes = true;
      }
    }
  }
  return super.visitVariableDefinitionEntry(node);
}
origin: com.amazon.device.tools.lint/lint-checks

@Override
public boolean visitVariableDefinitionEntry(VariableDefinitionEntry node) {
  String name = node.astName().astValue();
  Expression rhs = node.astInitializer();
  Class<?> type = getType(rhs);
  if (type != null) {
    mTypes.put(name, type);
  } else {
    // Make sure we're not visiting the String.format node itself. If you have
    //    msg = String.format("%1$s", msg)
    // then we'd be wiping out the type of "msg" before visiting the
    // String.format call!
    if (rhs != mTargetNode) {
      mTypes.remove(name);
    }
  }
  return super.visitVariableDefinitionEntry(node);
}
lombok.astForwardingAstVisitorvisitVariableDefinitionEntry

Popular methods of ForwardingAstVisitor

  • visitNode
  • visitBinaryExpression
  • visitMethodInvocation
  • visitReturn
  • endVisit
  • visitAnnotation
  • visitComment
  • visitConstructorDeclaration
  • visitConstructorInvocation
  • visitImportDeclaration
  • visitMethodDeclaration
  • visitSelect
  • visitMethodDeclaration,
  • visitSelect,
  • visitTry,
  • visitVariableReference

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • String (java.lang)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Vim 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