Package org.aspectj.org.eclipse.jdt.core.dom

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


  return Messages.operation_createFieldProgress;
}
private VariableDeclarationFragment getFragment(ASTNode node) {
  Iterator fragments =  ((FieldDeclaration) node).fragments().iterator();
  if (this.anchorElement != null) {
    VariableDeclarationFragment fragment = null;
    String fragmentName = this.anchorElement.getElementName();
    while (fragments.hasNext()) {
      fragment = (VariableDeclarationFragment) fragments.next();
      if (fragment.getName().getIdentifier().equals(fragmentName)) {
        return fragment;
      }
    }
    return fragment;
  } else {
View Full Code Here


private String getASTNodeName() {
  if (this.alteredName != null) return this.alteredName;
  return getFragment(this.createdNode).getName().getIdentifier();
}
protected SimpleName rename(ASTNode node, SimpleName newName) {
  VariableDeclarationFragment fragment = getFragment(node);
  SimpleName oldName = fragment.getName();
  fragment.setName(newName);
  return oldName;
}
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.core.dom.VariableDeclarationFragment

Copyright © 2018 www.massapicom. 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.