Package com.ibm.wala.cast.ir.translator
Enum AstTranslator.ScopeType
- java.lang.Object
-
- java.lang.Enum<AstTranslator.ScopeType>
-
- com.ibm.wala.cast.ir.translator.AstTranslator.ScopeType
-
- All Implemented Interfaces:
Serializable
,Comparable<AstTranslator.ScopeType>
- Enclosing class:
- AstTranslator
public static enum AstTranslator.ScopeType extends Enum<AstTranslator.ScopeType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AstTranslator.ScopeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AstTranslator.ScopeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL
public static final AstTranslator.ScopeType LOCAL
-
GLOBAL
public static final AstTranslator.ScopeType GLOBAL
-
SCRIPT
public static final AstTranslator.ScopeType SCRIPT
-
FUNCTION
public static final AstTranslator.ScopeType FUNCTION
-
TYPE
public static final AstTranslator.ScopeType TYPE
-
-
Method Detail
-
values
public static AstTranslator.ScopeType[] 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 (AstTranslator.ScopeType c : AstTranslator.ScopeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AstTranslator.ScopeType 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 nameNullPointerException
- if the argument is null
-
-