org.androidtransfuse.analysis.adapter
Enum ASTAccessModifier
java.lang.Object
java.lang.Enum<ASTAccessModifier>
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
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
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.