Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ConstantReflectionProvider.java @ 22673:3e573d7d32a7
Remove forObject method from ConstantReflectionProvider.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 09 Oct 2015 14:43:07 +0200 |
parents | 1bbd4a7c274b |
children | f4c4cc22a31c |
comparison
equal
deleted
inserted
replaced
22672:1bbd4a7c274b | 22673:3e573d7d32a7 |
---|---|
132 * Gets a string as a {@link JavaConstant}. | 132 * Gets a string as a {@link JavaConstant}. |
133 */ | 133 */ |
134 JavaConstant forString(String value); | 134 JavaConstant forString(String value); |
135 | 135 |
136 /** | 136 /** |
137 * Boxes a raw object as a {@link JavaConstant}. May return {@code null} if the object can not | |
138 * be transferred from the compiler VM to the runtime VM. | |
139 */ | |
140 JavaConstant forObject(Object value); | |
141 | |
142 /** | |
143 * Returns the {@link ResolvedJavaType} for a {@link Class} object (or any other object regarded | 137 * Returns the {@link ResolvedJavaType} for a {@link Class} object (or any other object regarded |
144 * as a class by the VM) encapsulated in the given constant. Returns {@code null} if the | 138 * as a class by the VM) encapsulated in the given constant. Returns {@code null} if the |
145 * constant does not encapsulate a class, or if the type is not available at this point. | 139 * constant does not encapsulate a class, or if the type is not available at this point. |
146 */ | 140 */ |
147 ResolvedJavaType asJavaType(Constant constant); | 141 ResolvedJavaType asJavaType(Constant constant); |