Examples of VariableDeclarationFragment


Examples of org.eclipse.jdt.core.dom.VariableDeclarationFragment

   *         reference
   */
  @Override
  public boolean visit(VariableDeclarationStatement node) {
    for (Iterator iter = node.fragments().iterator(); iter.hasNext();) {
      VariableDeclarationFragment fragment = (VariableDeclarationFragment) iter
          .next();

      // VariableDeclarationFragment: is the plain variable declaration
      // part. Example:
      // "int x=0, y=0;" contains two VariableDeclarationFragments, "x=0"
      // and "y=0"

      IVariableBinding binding = fragment.resolveBinding();
      VariableBindingManager manager = new VariableBindingManager(
          fragment); // create the manager fro the fragment
      localVariableManagers.put(binding, manager);
      manager.variableInitialized(fragment.getInitializer());
      // first assignment is the initalizer
    }
    return false; // prevent that SimpleName is interpreted as
    // reference
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.