Package org.teavm.model
Enum ElementModifier
- java.lang.Object
-
- java.lang.Enum<ElementModifier>
-
- org.teavm.model.ElementModifier
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ElementModifier>
public enum ElementModifier extends java.lang.Enum<ElementModifier>
Represents flags for classes and class members.- See Also:
ElementHolder,AccessLevel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSTRACTANNOTATIONBRIDGEDEPRECATEDENUMFINALINTERFACENATIVESTATICSTRICTSYNCHRONIZEDSYNTHETICTRANSIENTVARARGSVOLATILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intpack(java.util.Set<ElementModifier> elementModifiers)static ElementModifiervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ElementModifier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSTRACT
public static final ElementModifier ABSTRACT
-
INTERFACE
public static final ElementModifier INTERFACE
-
FINAL
public static final ElementModifier FINAL
-
ENUM
public static final ElementModifier ENUM
-
ANNOTATION
public static final ElementModifier ANNOTATION
-
SYNTHETIC
public static final ElementModifier SYNTHETIC
-
BRIDGE
public static final ElementModifier BRIDGE
-
DEPRECATED
public static final ElementModifier DEPRECATED
-
NATIVE
public static final ElementModifier NATIVE
-
STATIC
public static final ElementModifier STATIC
-
STRICT
public static final ElementModifier STRICT
-
SYNCHRONIZED
public static final ElementModifier SYNCHRONIZED
-
TRANSIENT
public static final ElementModifier TRANSIENT
-
VARARGS
public static final ElementModifier VARARGS
-
VOLATILE
public static final ElementModifier VOLATILE
-
-
Method Detail
-
values
public static ElementModifier[] 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 (ElementModifier c : ElementModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementModifier valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
pack
public static int pack(java.util.Set<ElementModifier> elementModifiers)
-
-