< prev index next >
src/jdk.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ConstantReflectionProvider.java
Print this page
*** 20,30 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.meta;
! import java.lang.invoke.*;
/**
* Reflection operations on values represented as {@linkplain JavaConstant constants}. All methods
* in this interface require the VM to access the actual object encapsulated in
* {@link JavaKind#Object object} constants. This access is not always possible, depending on kind
--- 20,30 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.meta;
! import java.lang.invoke.MethodHandle;
/**
* Reflection operations on values represented as {@linkplain JavaConstant constants}. All methods
* in this interface require the VM to access the actual object encapsulated in
* {@link JavaKind#Object object} constants. This access is not always possible, depending on kind
*** 140,151 ****
*/
ResolvedJavaType asJavaType(Constant constant);
/**
* Check if the constant is embeddable in the code.
*/
! boolean isEmbeddable(Constant constant);
/**
* Gets access to the internals of {@link MethodHandle}.
*/
MethodHandleAccessProvider getMethodHandleAccess();
--- 140,155 ----
*/
ResolvedJavaType asJavaType(Constant constant);
/**
* Check if the constant is embeddable in the code.
+ *
+ * @param constant the constant to test
*/
! default boolean isEmbeddable(Constant constant) {
! return true;
! }
/**
* Gets access to the internals of {@link MethodHandle}.
*/
MethodHandleAccessProvider getMethodHandleAccess();
< prev index next >