Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stub classes for annotated type reflection.
Change on 2018/05/03 by tball <tball@google.com> ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=195362786
- Loading branch information
Showing
7 changed files
with
229 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
jre_emul/openjdk/src/share/classes/java/lang/reflect/AnnotatedArrayType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Oracle designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Oracle in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
package java.lang.reflect; | ||
|
||
|
||
/** | ||
* {@code AnnotatedArrayType} represents the potentially annotated use of an | ||
* array type, whose component type may itself represent the annotated use of a | ||
* type. | ||
* | ||
* @since 1.8 | ||
*/ | ||
public interface AnnotatedArrayType extends AnnotatedType { | ||
|
||
/** | ||
* Returns the potentially annotated generic component type of this array type. | ||
* | ||
* @return the potentially annotated generic component type of this array type | ||
*/ | ||
AnnotatedType getAnnotatedGenericComponentType(); | ||
} |
43 changes: 43 additions & 0 deletions
43
jre_emul/openjdk/src/share/classes/java/lang/reflect/AnnotatedParameterizedType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Oracle designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Oracle in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
package java.lang.reflect; | ||
|
||
/** | ||
* {@code AnnotatedParameterizedType} represents the potentially annotated use | ||
* of a parameterized type, whose type arguments may themselves represent | ||
* annotated uses of types. | ||
* | ||
* @since 1.8 | ||
*/ | ||
public interface AnnotatedParameterizedType extends AnnotatedType { | ||
|
||
/** | ||
* Returns the potentially annotated actual type arguments of this parameterized type. | ||
* | ||
* @return the potentially annotated actual type arguments of this parameterized type | ||
*/ | ||
AnnotatedType[] getAnnotatedActualTypeArguments(); | ||
} |
44 changes: 44 additions & 0 deletions
44
jre_emul/openjdk/src/share/classes/java/lang/reflect/AnnotatedType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Oracle designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Oracle in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
package java.lang.reflect; | ||
|
||
/** | ||
* {@code AnnotatedType} represents the potentially annotated use of a type in | ||
* the program currently running in this VM. The use may be of any type in the | ||
* Java programming language, including an array type, a parameterized type, a | ||
* type variable, or a wildcard type. | ||
* | ||
* @since 1.8 | ||
*/ | ||
public interface AnnotatedType extends AnnotatedElement { | ||
|
||
/** | ||
* Returns the underlying type that this annotated type represents. | ||
* | ||
* @return the type this annotated type represents | ||
*/ | ||
public Type getType(); | ||
} |
43 changes: 43 additions & 0 deletions
43
jre_emul/openjdk/src/share/classes/java/lang/reflect/AnnotatedTypeVariable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Oracle designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Oracle in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
package java.lang.reflect; | ||
|
||
/** | ||
* {@code AnnotatedTypeVariable} represents the potentially annotated use of a | ||
* type variable, whose declaration may have bounds which themselves represent | ||
* annotated uses of types. | ||
* | ||
* @since 1.8 | ||
*/ | ||
public interface AnnotatedTypeVariable extends AnnotatedType { | ||
|
||
/** | ||
* Returns the potentially annotated bounds of this type variable. | ||
* | ||
* @return the potentially annotated bounds of this type variable | ||
*/ | ||
AnnotatedType[] getAnnotatedBounds(); | ||
} |
50 changes: 50 additions & 0 deletions
50
jre_emul/openjdk/src/share/classes/java/lang/reflect/AnnotatedWildcardType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Oracle designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Oracle in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
package java.lang.reflect; | ||
|
||
/** | ||
* {@code AnnotatedWildcardType} represents the potentially annotated use of a | ||
* wildcard type argument, whose upper or lower bounds may themselves represent | ||
* annotated uses of types. | ||
* | ||
* @since 1.8 | ||
*/ | ||
public interface AnnotatedWildcardType extends AnnotatedType { | ||
|
||
/** | ||
* Returns the potentially annotated lower bounds of this wildcard type. | ||
* | ||
* @return the potentially annotated lower bounds of this wildcard type | ||
*/ | ||
AnnotatedType[] getAnnotatedLowerBounds(); | ||
|
||
/** | ||
* Returns the potentially annotated upper bounds of this wildcard type. | ||
* | ||
* @return the potentially annotated upper bounds of this wildcard type | ||
*/ | ||
AnnotatedType[] getAnnotatedUpperBounds(); | ||
} |
27 changes: 0 additions & 27 deletions
27
jre_emul/stub_classes/java/lang/reflect/AnnotatedType.java
This file was deleted.
Oops, something went wrong.