Dali Provisional API
Release 3.2

org.eclipse.jpt.common.core.resource.java
Enum JavaResourceAnnotatedElement.AstNodeType

java.lang.Object
  extended by java.lang.Enum<JavaResourceAnnotatedElement.AstNodeType>
      extended by org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement.AstNodeType
All Implemented Interfaces:
Serializable, Comparable<JavaResourceAnnotatedElement.AstNodeType>
Enclosing interface:
JavaResourceAnnotatedElement

public static enum JavaResourceAnnotatedElement.AstNodeType
extends Enum<JavaResourceAnnotatedElement.AstNodeType>

The java element's ASTNode type. These are the only ASTNode types that our resource model supports


Enum Constant Summary
ENUM
          Represents an enum.
ENUM_CONSTANT
          Represents an enum constant.
FIELD
          Represents a type field.
METHOD
          Represents a method.
PACKAGE
          Represents an annotatable package.
TYPE
          Represents a class or interface.
 
Method Summary
 boolean matches(int type)
          Return whether the given astNodeType matches this type
static JavaResourceAnnotatedElement.AstNodeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JavaResourceAnnotatedElement.AstNodeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PACKAGE

public static final JavaResourceAnnotatedElement.AstNodeType PACKAGE
Represents an annotatable package. An JavaResourceAnnotatedElement of JavaResourceAnnotatedElement.AstNodeType PACKAGE may safely be cast as a JavaResourcePackage


TYPE

public static final JavaResourceAnnotatedElement.AstNodeType TYPE
Represents a class or interface. An JavaResourceAnnotatedElement of JavaResourceAnnotatedElement.AstNodeType TYPE may safely be cast as a JavaResourceType


ENUM

public static final JavaResourceAnnotatedElement.AstNodeType ENUM
Represents an enum. An JavaResourceAnnotatedElement of JavaResourceAnnotatedElement.AstNodeType ENUM may safely be cast as a JavaResourceEnum


METHOD

public static final JavaResourceAnnotatedElement.AstNodeType METHOD
Represents a method. An JavaResourceAnnotatedElement of JavaResourceAnnotatedElement.AstNodeType METHOD may safely be cast as a JavaResourceMethod


FIELD

public static final JavaResourceAnnotatedElement.AstNodeType FIELD
Represents a type field. An JavaResourceAnnotatedElement of JavaResourceAnnotatedElement.AstNodeType FIELD may safely be cast as a JavaResourceField


ENUM_CONSTANT

public static final JavaResourceAnnotatedElement.AstNodeType ENUM_CONSTANT
Represents an enum constant. An JavaResourceAnnotatedElement of JavaResourceAnnotatedElement.AstNodeType ENUM_CONSTANT may safely be cast as a JavaResourceEnumConstant

Method Detail

values

public static JavaResourceAnnotatedElement.AstNodeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JavaResourceAnnotatedElement.AstNodeType c : JavaResourceAnnotatedElement.AstNodeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JavaResourceAnnotatedElement.AstNodeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

matches

public boolean matches(int type)
Return whether the given astNodeType matches this type


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.