< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Target.java

Print this page




 134     /** Does the VM support polymorphic method handle invocation?
 135      *  Affects the linkage information output to the classfile.
 136      *  An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together.
 137      */
 138     public boolean hasMethodHandles() {
 139         return hasInvokedynamic();
 140     }
 141 
 142     /** Does the target JDK contain StringConcatFactory class?
 143      */
 144     public boolean hasStringConcatFactory() {
 145         return compareTo(JDK1_9) >= 0;
 146     }
 147 
 148     /** Value of platform release used to access multi-release jar files
 149      */
 150     public String multiReleaseValue() {
 151         return Integer.toString(this.ordinal() - Target.JDK1_1.ordinal() + 1);
 152     }
 153 
 154     /** Does the target VM support nestmates?
 155      */
 156     public boolean hasNestmates() {
 157         return compareTo(JDK1_10) >= 0;
 158     }







 159 }


 134     /** Does the VM support polymorphic method handle invocation?
 135      *  Affects the linkage information output to the classfile.
 136      *  An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together.
 137      */
 138     public boolean hasMethodHandles() {
 139         return hasInvokedynamic();
 140     }
 141 
 142     /** Does the target JDK contain StringConcatFactory class?
 143      */
 144     public boolean hasStringConcatFactory() {
 145         return compareTo(JDK1_9) >= 0;
 146     }
 147 
 148     /** Value of platform release used to access multi-release jar files
 149      */
 150     public String multiReleaseValue() {
 151         return Integer.toString(this.ordinal() - Target.JDK1_1.ordinal() + 1);
 152     }
 153 
 154     /** Does the target VM support nestmate access?
 155      */
 156     public boolean hasNestmateAccess() {
 157         return compareTo(JDK1_10) >= 0;
 158     }
 159 
 160     /** Does the target VM support virtual private invocations?
 161      */
 162     public boolean hasVirtualPrivateInvoke() {
 163         return compareTo(JDK1_10) >= 0;
 164     }
 165 
 166 }
< prev index next >