/dalvik/tests/055-enum-performance/src/ |
Main.java | 54 * This is meant to ensure that the basic enum functionality 60 System.out.println(Enum.valueOf(c, "FOUR")); 61 System.out.println(Enum.valueOf(c, "ONE")); 62 System.out.println(Enum.valueOf(c, "FOURTEEN")); 63 System.out.println(Enum.valueOf(c, "NINE")); 64 System.out.println(Enum.valueOf(c, "FIVE")); 65 System.out.println(Enum.valueOf(c, "TWELVE")); 67 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName()); 115 Enum.valueOf(c, "ZERO"); 116 Enum.valueOf(c, "ONE") [all...] |
/external/clang/test/SemaCXX/ |
short-enums.cpp | 5 enum E { VALUE_1 }; 10 template <E Enum> 11 struct B : A<B<Enum> > {};
|
cxx98-compat-pedantic.cpp | 16 enum Enum {
|
constant-expression.cpp | 12 enum Enum { eval = 1 }; 14 const Enum ceval = eval; 17 static const Enum seval = eval; 20 template <int itval, Enum etval> struct C { 21 enum E { 84 enum {
|
attr-deprecated.cpp | 196 enum __attribute__((deprecated)) A { 204 enum B { 215 enum __attribute__((deprecated)) Enum { 220 C<int>::Enum x; // expected-warning {{'Enum' is deprecated}} 221 x = C<int>::c0; // expected-warning {{'Enum' is deprecated}} 225 enum Enum { 231 D<int>::Enum x [all...] |
cstyle-cast.cpp | 55 enum Enum { En1, En2 }; 56 enum Onom { On1, On2 }; 135 // Enum conversions 138 (void)(Enum)(1); 139 (void)(Enum)(1.0); 144 (void)(Enum)((int*)0); // expected-error {{C-style cast from 'int *' to 'Enum' is not allowed}} 167 enum test { testval = 1 };
|
static-cast.cpp | 13 enum Enum { En1, En2 }; 14 enum Onom { On1, On2 }; 102 // Enum conversions 105 (void)static_cast<Enum>(1); 106 (void)static_cast<Enum>(1.0); 111 (void)static_cast<Enum>((int*)0); // expected-error {{static_cast from 'int *' to 'Enum' is not allowed}}
|
conditional-expr.cpp | 53 enum Enum { EVal }; 262 enum Foo { 297 enum Enum { 301 const Enum g() { 305 const volatile Enum g2() { 310 const Enum v2 = v; 311 Enum e = false ? g() : v; 312 Enum e2 = false ? v2 : v [all...] |
/libcore/luni/src/main/java/java/lang/ |
EnumConstantNotPresentException.java | 20 * Thrown if an {@code enum} constant does not exist for a particular name. 29 private final Class<? extends Enum> enumType; 35 * stack trace and a detail message based on the specified enum type and 39 * the enum type. 44 public EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName) { 45 super("enum constant " + enumType.getName() + "." + constantName + " is missing"); 51 * Gets the enum type for which the constant name is missing. 53 * @return the enum type for which a constant name has not been found. 56 public Class<? extends Enum> enumType() { 63 * @return the name of the constant that has not been found in the enum [all...] |
Enum.java | 30 public abstract class Enum<E extends Enum<E>> implements Serializable, Comparable<E> { 34 private static final BasicLruCache<Class<? extends Enum>, Object[]> sharedConstantsCache 35 = new BasicLruCache<Class<? extends Enum>, Object[]>(64) { 36 @Override protected Object[] create(Class<? extends Enum> enumType) { 54 * Constructor for constants of enum subtypes. 57 * the enum constant's declared name. 59 * the enum constant's ordinal, which corresponds to its position 60 * in the enum declaration, starting at zero. 62 protected Enum(String name, int ordinal) [all...] |
/external/clang/test/SemaTemplate/ |
enum-argument.cpp | 3 enum Enum { val = 1 }; 4 template <Enum v> struct C { 16 enum { 28 enum { e0 = 32 };
|
instantiate-enum.cpp | 5 enum { 16 enum Enum
|
/external/clang/test/CXX/class.access/ |
p6.cpp | 126 enum Enum { E0, E1, E2 }; // expected-note 4 {{declared private here}} 127 template <Enum> void foo(); 128 template <Enum> class bar; 131 template <A::Enum en> void A::foo() {} 132 template <A::Enum en> class A::bar {}; 134 template <A::Enum en> void foo() {} // expected-error {{'Enum' is a private member of 'test5::A'}} 135 template <A::Enum en> class bar {}; // expected-error {{'Enum' is a private member of 'test5::A'} [all...] |
/external/guava/src/com/google/common/collect/ |
EnumBiMap.java | 35 public final class EnumBiMap<K extends Enum<K>, V extends Enum<V>> 47 public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> 62 public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> 75 static <K extends Enum<K>> Class<K> inferKeyType(Map<K, ?> map) { 86 private static <V extends Enum<V>> Class<V> inferValueType(Map<?, V> map) {
|
EnumHashBiMap.java | 37 public final class EnumHashBiMap<K extends Enum<K>, V> 46 public static <K extends Enum<K>, V> EnumHashBiMap<K, V> 61 public static <K extends Enum<K>, V> EnumHashBiMap<K, V>
|
EnumMultiset.java | 36 public final class EnumMultiset<E extends Enum<E>> 39 public static <E extends Enum<E>> EnumMultiset<E> create(Class<E> type) { 49 public static <E extends Enum<E>> EnumMultiset<E> create( 75 * @serialData the {@code Class<E>} for the enum type, the number of distinct
|
/libcore/luni/src/main/java/java/util/ |
EnumSet.java | 23 public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E> 34 * Creates an empty enum set. The permitted elements are of type 39 * @return an empty enum set, with permitted elements of type {@code 42 * if the specified element type is not and enum type. 44 public static <E extends Enum<E>> EnumSet<E> noneOf(Class<E> elementType) { 46 throw new ClassCastException(elementType.getClass().getName() + " is not an Enum"); 48 E[] enums = Enum.getSharedConstants(elementType); 56 * Creates an enum set filled with all the enum elements of the specified 61 * @return an enum set with elements solely from the specified element type [all...] |
EnumMap.java | 26 * An {@code Map} specialized for use with {@code Enum} types as keys. 28 public class EnumMap<K extends Enum<K>, V> extends AbstractMap<K, V> implements 39 transient Enum[] keys; 51 private static class Entry<KT extends Enum<KT>, VT> extends 60 ordinal = ((Enum) theKey).ordinal(); 131 private static class EnumMapIterator<E, KT extends Enum<KT>, VT> implements 192 private static class EnumMapKeySet<KT extends Enum<KT>, VT> extends 237 private static class EnumMapValueCollection<KT extends Enum<KT>, VT> 293 private static class EnumMapEntryIterator<E, KT extends Enum<KT>, VT> 311 private static class EnumMapEntrySet<KT extends Enum<KT>, VT> extend [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
EnumTest.java | 29 enum Sample { 37 enum Empty { 40 enum Bogus { 44 enum Color { 48 enum MockCloneEnum { 57 * @tests java.lang.Enum#compareTo(java.lang.Enum) 72 * @tests java.lang.Enum#equals(Object) 83 * @tests java.lang.Enum#getDeclaringClass() 90 * @tests java.lang.Enum#hashCode( [all...] |
/prebuilt/common/tools-common/ |
tools-common-prebuilt.jar | |
/external/clang/include/clang/Analysis/Visitors/ |
CFGRecStmtDeclVisitor.h | 68 DISPATCH_CASE(Enum) 84 DEFAULT_DISPATCH(Enum)
|
/external/proguard/examples/annotations/ |
examples.pro | 43 -keepclassmembers class * extends java.lang.Enum {
|
/external/proguard/examples/ |
applets.pro | 35 -keepclassmembers class * extends java.lang.Enum {
|
applications.pro | 41 -keepclassmembers class * extends java.lang.Enum {
|
servlets.pro | 36 -keepclassmembers class * extends java.lang.Enum {
|