Package org.eclipse.jdt.core.dom

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


   * technically they can be interspersed with modifiers.
   */
  public static int annotationLocation(SingleVariableDeclaration declaration) {
    int count = 0;
    for (Iterator i = declaration.modifiers().listIterator(); i.hasNext();) {
      IExtendedModifier modifier = (IExtendedModifier) i.next();
      if (modifier.isModifier()) {
        break;
      }
      count++;
    }
    return count;
View Full Code Here


    isAbstract = anAbstract;
  }

  public ModifiersInfo(final List<?> modifiers) {
    for (final Object modifierObject : modifiers) {
      final IExtendedModifier extendedModifier = (IExtendedModifier) modifierObject;
      if (extendedModifier.isModifier()) {
        final Modifier modifier = (Modifier) modifierObject;

        if (modifier.isStatic()) {
          isStatic = true;
        } else if (modifier.isFinal()) {
          isFinal = true;
        } else if (modifier.isPrivate()) {
          isPrivate = true;
        } else if (modifier.isProtected()) {
          isProtected = true;
        } else if (modifier.isPublic()) {
          isPublic = true;
        } else if (modifier.isVolatile()) {
          isVolatile = true;
        } else if (modifier.isAbstract()) {
          isAbstract = true;
        }
      } else if (extendedModifier.isAnnotation()) {
        // TODO: Manage annotation ?
      }
    }

    // Package visibility maps to private
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.IExtendedModifier

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.