/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.lang.annotation.Annotation; import java.lang.reflect.AnnotatedElement; import java.net.URL; import org.sablevm.annotations.ImplementedInVM; public class Package extends Object implements AnnotatedElement { @ImplementedInVM native public String getName(); @ImplementedInVM native public String getSpecificationTitle(); @ImplementedInVM native public String getSpecificationVersion(); @ImplementedInVM native public String getSpecificationVendor(); @ImplementedInVM native public String getImplementationTitle(); @ImplementedInVM native public String getImplementationVersion(); @ImplementedInVM native public String getImplementationVendor(); @ImplementedInVM native public boolean isSealed(); @ImplementedInVM native public boolean isSealed(URL url); @ImplementedInVM native public boolean isCompatibleWith(String desired) throws NumberFormatException; @ImplementedInVM native public static Package getPackage(String name); @ImplementedInVM native public static Package[] getPackages(); @ImplementedInVM native public int hashCode(); @ImplementedInVM native public String toString(); @ImplementedInVM native public A getAnnotation( Class annotationClass); @ImplementedInVM native public boolean isAnnotationPresent( Class annotationClass); @ImplementedInVM native public Annotation[] getAnnotations(); @ImplementedInVM native public Annotation[] getDeclaredAnnotations(); }