/libcore/ojluni/src/main/java/java/lang/reflect/ |
H A D | WildcardType.java | 34 public interface WildcardType extends Type { 36 * Returns an array of {@code Type} objects representing the upper 56 Type[] getUpperBounds(); 59 * Returns an array of {@code Type} objects representing the 80 Type[] getLowerBounds();
|
H A D | ParameterizedType.java | 47 public interface ParameterizedType extends Type { 49 * Returns an array of {@code Type} objects representing the actual type 56 * @return an array of {@code Type} objects representing the actual type 65 Type[] getActualTypeArguments(); 68 * Returns the {@code Type} object representing the class or interface 71 * @return the {@code Type} object representing the class or interface 75 Type getRawType(); 78 * Returns a {@code Type} object representing the type that this type 84 * @return a {@code Type} object representing the type that 94 Type getOwnerTyp [all...] |
H A D | GenericArrayType.java | 33 public interface GenericArrayType extends Type { 35 * Returns a {@code Type} object representing the component type 43 * @return a {@code Type} object representing the component type 51 Type getGenericComponentType();
|
H A D | TypeVariable.java | 53 public interface TypeVariable<D extends GenericDeclaration> extends Type/*, AnnotatedElement*/ { 55 * Returns an array of {@code Type} objects representing the 70 * @return an array of {@code Type}s representing the upper 73 Type[] getBounds();
|
H A D | Type.java | 29 * Type is the common superinterface for all types in the Java 36 public interface Type { interface
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyRepTypeTest.java | 35 * java.security.KeyRep.Type#valueOf(String) 39 KeyRep.Type.valueOf("type"); 45 KeyRep.Type.valueOf(null); 50 assertEquals(KeyRep.Type.PRIVATE, KeyRep.Type 51 .valueOf(KeyRep.Type.PRIVATE.toString())); 52 assertEquals(KeyRep.Type.PUBLIC, KeyRep.Type.valueOf(KeyRep.Type.PUBLIC 54 assertEquals(KeyRep.Type [all...] |
H A D | KeyRepTest.java | 40 assertNotNull(new KeyRep(KeyRep.Type.SECRET, "", "", new byte[] {})); 41 assertNotNull(new KeyRep(KeyRep.Type.PUBLIC, "", "", new byte[] {})); 42 assertNotNull(new KeyRep(KeyRep.Type.PRIVATE, "", "", new byte[] {})); 52 new KeyRep(KeyRep.Type.SECRET, null, "", new byte[] {}); 57 new KeyRep(KeyRep.Type.PRIVATE, "", null, new byte[] {}); 62 new KeyRep(KeyRep.Type.PUBLIC, "", "", null); 69 KeyRepChild kr = new KeyRepChild(KeyRep.Type.SECRET, "", "", new byte[] {}); 76 kr = new KeyRepChild(KeyRep.Type.SECRET, "", "X.509", new byte[] {}); 83 kr = new KeyRepChild(KeyRep.Type.SECRET, "", "RAW", new byte[] {}); 92 KeyRepChild kr = new KeyRepChild(KeyRep.Type [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | ListOfTypes.java | 19 import java.lang.reflect.Type; 27 private final ArrayList<Type> types; 28 private Type[] resolvedTypes; 31 types = new ArrayList<Type>(capacity); 34 ListOfTypes(Type[] types) { 35 this.types = new ArrayList<Type>(types.length); 36 for (Type type : types) { 41 void add(Type type) { 52 public Type[] getResolvedTypes() { 53 Type[] resul [all...] |
H A D | GenericArrayTypeImpl.java | 20 import java.lang.reflect.Type; 24 private final Type componentType; 26 public GenericArrayTypeImpl(Type componentType) { 30 public Type getGenericComponentType() {
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | TypeTest.java | 21 import java.lang.reflect.Type; 29 Type type = new Type() {
|
H A D | OldGenericReflectionCornerCases.java | 22 import java.lang.reflect.Type; 47 Type[] parameterTypes = method.getGenericParameterTypes(); 49 Type parameter = parameterTypes[0]; 52 Type[] actualTypeArguments = paramType.getActualTypeArguments(); 55 Type firstArgument = actualTypeArguments[0]; 58 Type secondArgument = actualTypeArguments[1]; 64 Type[] firstWildcardArgumentUpperBounds = firstWildcardArgument.getUpperBounds(); 66 Type firstWildcardArgumentUpperBoundsType = firstWildcardArgumentUpperBounds[0]; 68 Type[] secondWildcardArgumentUpperBounds = secondWildcardArgument.getUpperBounds(); 70 Type secondWildcardArgumentUpperBoundsTyp [all...] |
H A D | GenericExceptionsTest.java | 22 import java.lang.reflect.Type; 32 assertEquals(Arrays.<Type>asList(IOException.class), 38 assertEquals(Arrays.<Type>asList(IOException.class), 44 assertEquals(Arrays.<Type>asList(IOException.class), 50 assertEquals(Arrays.<Type>asList(IOException.class), 59 assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(typeVariable.getBounds())); 67 assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(typeVariable.getBounds())); 75 assertEquals(Arrays.<Type>asList(Exception.class), Arrays.asList(typeVariable.getBounds())); 80 Type[] exceptions = method.getGenericExceptionTypes(); 84 assertEquals(Arrays.<Type>asLis [all...] |
H A D | OldGenericTypesTest.java | 22 import java.lang.reflect.Type; 69 Type[] genericParameterTypes = constructor.getGenericParameterTypes(); 71 Type parameterType = genericParameterTypes[0]; 81 Type[] genericParameterTypes = method.getGenericParameterTypes(); 83 Type parameterType = genericParameterTypes[0]; 94 Type[] genericParameterTypes = method.getGenericParameterTypes(); 96 Type parameterType = genericParameterTypes[0]; 109 //Type parameters 122 Type[] multipleGenericTypesTTypes = multipleGenericTypesT.getGenericParameterTypes(); 124 Type multipleGenericTypesTTyp [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldProxyTest.java | 28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); 32 new Proxy(Proxy.Type.SOCKS, null); 42 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, address1); 43 Proxy proxy2 = new Proxy(Proxy.Type.HTTP, address1); 46 new Proxy(Proxy.Type.SOCKS, address1); 47 Proxy proxy4 = new Proxy(Proxy.Type.SOCKS, address1); 54 Proxy proxy5 = new Proxy(Proxy.Type.SOCKS, address1); 55 Proxy proxy6 = new Proxy(Proxy.Type.SOCKS, address2); 61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); 62 assertEquals(Proxy.Type [all...] |
H A D | ProxySelectorTest.java | 79 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), 81 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80))), 83 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("c", 443))), 100 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 1001))), 102 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 1002))), 104 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("c", 1003))), 131 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), 133 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), 135 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 443))), 144 assertEquals(Arrays.asList(new Proxy(Proxy.Type [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | StreamOpFlag.java | 45 * <caption>Type Characteristics</caption> 216 * Characteristics belong to certain types, see the Type enum. Bit masks for 249 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP)), 270 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP)), 283 set(Type.SPLITERATOR).set(Type 341 enum Type { enum in class:StreamOpFlag [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | ProxyTest.java | 29 * java.net.Proxy#Proxy(java.net.Proxy.Type, SocketAddress) 33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); 34 assertEquals(Proxy.Type.HTTP, proxy.type()); 38 proxy = new Proxy(Proxy.Type.SOCKS, address); 39 assertEquals(Proxy.Type.SOCKS, proxy.type()); 44 assertEquals(Proxy.Type.DIRECT, proxy.type()); 49 * java.net.Proxy#Proxy(java.net.Proxy.Type, SocketAddress) 55 proxy = new Proxy(Proxy.Type.HTTP, null); 62 proxy = new Proxy(Proxy.Type.SOCKS, null); 69 proxy = new Proxy(Proxy.Type [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | Proxy.java | 45 public enum Type { enum in class:Proxy 60 private Type type; 76 type = Type.DIRECT; 88 * @param type the {@code Type} of the proxy 93 public Proxy(Type type, SocketAddress sa) { 94 if ((type == Type.DIRECT) || !(sa instanceof InetSocketAddress)) 103 * @return a Type representing the proxy type 105 public Type type() { 129 if (type() == Type.DIRECT)
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | WildcardTypeTest.java | 22 import java.lang.reflect.Type; 46 * Tests that there are is one Type Parameter on the Class itself. 62 Type[] bounds = typeParameter.getBounds(); 64 Type bound = bounds[0]; 69 Type genericParameterType = method.getGenericParameterTypes()[0]; 74 Type[] actualTypeArguments = parameterizedType.getActualTypeArguments(); 82 Type[] lowerBounds = wildcardType.getLowerBounds(); 84 Type lowerBound = lowerBounds[0]; 87 Type[] upperBounds = wildcardType.getUpperBounds(); 93 Type genericParameterTyp [all...] |
H A D | BoundedGenericMethodsTests.java | 20 import java.lang.reflect.Type; 55 Type[] bounds = typeParameter.getBounds(); 57 Type bound = bounds[0]; 71 Type genericParameterType = method.getGenericParameterTypes()[0]; 77 Type[] paramBounds = typeVariable.getBounds(); 79 Type paramBound = paramBounds[0]; 85 Type genericReturnType = method.getGenericReturnType(); 92 Type[] bounds = returnTypeVariable.getBounds(); 94 Type bound = bounds[0]; 102 * Tests that there are is one Type Paramete [all...] |
H A D | GenericArrayTypeTest.java | 22 import java.lang.reflect.Type; 37 Type genericType = field.getGenericType(); 42 Type componentType = ((GenericArrayType) genericType).getGenericComponentType(); 57 Type genericType = field.getGenericType(); 65 Type componentType = arrayType.getGenericComponentType();
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | KeyRep.java | 67 public static enum Type { enum in class:KeyRep 69 /** Type for secret keys. */ 72 /** Type for public keys. */ 75 /** Type for private keys. */ 85 * Either one of Type.SECRET, Type.PUBLIC, or Type.PRIVATE 89 private Type type; 117 * @param type either one of Type.SECRET, Type [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | EmptyArray.java | 35 public static final java.lang.reflect.Type[] TYPE = new java.lang.reflect.Type[0];
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | ProcessBuilder.java | 455 * {@link Type Type}. 463 public enum Type { enum in class:ProcessBuilder.Redirect 497 public abstract Type type(); 508 * Redirect.PIPE.type() == Redirect.Type.PIPE 512 public Type type() { return Type.PIPE; } 523 * Redirect.INHERIT.type() == Redirect.Type.INHERIT 527 public Type type() { return Type [all...] |
/libcore/ojluni/src/main/java/sun/net/ |
H A D | SocksProxy.java | 38 super(Proxy.Type.SOCKS, addr);
|