org.androidtransfuse.analysis.adapter
Enum ASTAccessModifier

Package class diagram package ASTAccessModifier
java.lang.Object
  extended by java.lang.Enum<ASTAccessModifier>
      extended by org.androidtransfuse.analysis.adapter.ASTAccessModifier
All Implemented Interfaces:
Serializable, Comparable<ASTAccessModifier>

public enum ASTAccessModifier
extends Enum<ASTAccessModifier>

Enumeration of available access modifiers, associated with codeModel modifier types

Author:
John Ericksen

Enum Constant Summary
PACKAGE_PRIVATE
           
PRIVATE
           
PROTECTED
           
PUBLIC
           
 
Method Summary
 int getCodeModelJMod()
           
 int getJavaModifier()
           
static ASTAccessModifier getModifier(int modifier)
           
abstract  boolean isModifier(int modifier)
           
static ASTAccessModifier valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ASTAccessModifier[] 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

PUBLIC

public static final ASTAccessModifier PUBLIC

PROTECTED

public static final ASTAccessModifier PROTECTED

PACKAGE_PRIVATE

public static final ASTAccessModifier PACKAGE_PRIVATE

PRIVATE

public static final ASTAccessModifier PRIVATE
Method Detail

values

public static ASTAccessModifier[] 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 (ASTAccessModifier c : ASTAccessModifier.values())
    System.out.println(c);

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

valueOf

public static ASTAccessModifier 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

getCodeModelJMod

public int getCodeModelJMod()

getJavaModifier

public int getJavaModifier()

getModifier

public static ASTAccessModifier getModifier(int modifier)

isModifier

public abstract boolean isModifier(int modifier)


Copyright © 2012. All Rights Reserved.