java.lang中的本地方法

1. java,lang.Boolean中没有 native方法
2. java.lang.Character中没有native方法
3. java.lang.Byte中没有本地方法
4. java.labg.Short中没有本地方法
5. java.lang.Integer中没有本地方法
6. java.lang.Long中没有本地方法
7. java.lang.Float
   (1)public static native int floatToIntBits(float value);
   (2)public static native float intBitsToFloat(int bits);
8. java.lang.Double
   (1)public static native long doubleToLongBits(double value);
   (2)public static native double longBitsToDouble(long bits);
9. java.lang.Object
   (1)private static native void registerNatives();
   (2)public final native Class getClass();
   (3)public native int hashCode();
   (4)protected native Object clone() throws CloneNotSupportedException;
   (5)public final native void notify();
   (6)public final native void notifyAll();
   (7)public final native void wait(long timeout) throws InterruptedException;
10. java.lang.AbstractMethodError中没有本地方法
11. java.lang.ArithmeticException中没有本地方法
12. java.lang.ArrayIndexOutOfBoundsException中没有本地方法
13. java.ArrayStoreException中没有本地方法
14. java.lang.Class
    (1)private static native void registerNatives(); 
    (2)private static native Class forName0(String name, boolean initialize, ClassLoader loader)throws ClassNotFoundException;
    (3)private native Object newInstance0() throws InstantiationException, IllegalAccessException;
    (4)public native boolean isInstance(Object obj);
    (5)public native boolean isAssignableFrom(Class cls);
    (6)public native boolean isInterface();
    (7)public native boolean isArray();
    (8)public native boolean isPrimitive();
    (9)public native String getName();
    (10)private native ClassLoader getClassLoader0();
    (11)public native Class getSuperclass();
    (12)public native Class[] getInterfaces();
    (13)public native Class getComponentType();
    (14)public native int getModifiers();
    (15)public native Object[] getSigners();
    (16)native void setSigners(Object[] signers);
    (17)public native Class getDeclaringClass();
    (18)private native java.security.ProtectionDomain getProtectionDomain0();
    (19) native void setProtectionDomain0(java.security.ProtectionDomain pd);
    (20)static native Class getPrimitiveClass(String name);
    (21)private native Field[] getFields0(int which);
    (22)private native Method[] getMethods0(int which);
    (23)private native Constructor[] getConstructors0(int which);
    (24)private native Field getField0(String name, int which);
    (25)private native Method getMethod0(String name, Class[] parameterTypes, int which);
    (26)private native Constructor getConstructor0(Class[] parameterTypes,int which);
    (27)private native Class[] getDeclaredClasses0();
15. java.lang.ClassCastException无
16. java.lang.ClassCircularityError无
17. java.lang.ClassFormatError无
18. java.lang.ClassLoader
    (1)private native Class defineClass0(String name, byte[] b, int off, int len,ProtectionDomain pd);
    (2)private native void resolveClass0(Class c);
    (3)private native Class findBootstrapClass(String name) throws ClassNotFoundException;
    (4)protected native final Class findLoadedClass(String name);
    (5)static native ClassLoader getCallerClassLoader();
    (6)native void load(String name);
    (7)native long find(String name);
    (8)native void unload();
19. java.lang.ClassNotFoundException无
20. java.lang.Cloneable无
21. CloneNotSupportedException.java无
22. java.lang.Comparable无
23. java.lang.Compiler
    (1)private static native void initialize();
    (2)private static native void registerNatives();
    (3)public static native boolean compileClass(Class clazz);
    (4)public static native boolean compileClasses(String string);
    (5)public static native Object command(Object any);
    (6)public static native void enable();
    (7)public static native void disable();
24. java.lang.Error无
25. java.lang.Exception无
26. java.lang.ExceptionInInitializerError无
27. java.lang.FloatingDecimal无
28. java.lang.IllegalAccessError无
29. java.lang.IllegalAccessException无
30. java.lang.IllegalArgumentException无
31. IllegalMonitorStateException.java无
32. IllegalStateException.java无
33. IllegalThreadStateException.java无
34. IncompatibleClassChangeError.java无
35. IndexOutOfBoundsException.java无
36. InheritableThreadLocal.java无
37. InstantiationError.java无
38.InstantiationException.java无
39. Math.java 
   (1)public static native double sin(double a);
   public static native double cos(double a);
   public static native double tan(double a);
   public static native double asin(double a);
   public static native double acos(double a);
   public static native double atan(double a);
   public static native double exp(double a);
   public static native double log(double a);
   public static native double sqrt(double a);
   public static native double IEEEremainder(double f1, double f2);
   public static native double ceil(double a);
   public static native double floor(double a);
   public static native double rint(double a);
   public static native double atan2(double a, double b);
   public static native double pow(double a, double b);
40 Package.java
   public static native double pow(double a, double b);
   private static native String[] getSystemPackages0();

41. Runtime.java
   private native void exitInternal(int status);
   private static native void runFinalizersOnExit0(boolean value);
   private native Process execInternal(String cmdarray[], String envp[]) throws IOException;
   public native long freeMemory();
   public native long totalMemory();
   public native void gc();
   public native void traceInstructions(boolean on);
   public native void traceMethodCalls(boolean on);
42 SecurityManager.java
  protected native Class[] getClassContext();
  private native ClassLoader currentClassLoader0();
  protected native int classDepth(String name);
  private native int classLoaderDepth0();
  private native Class currentLoadedClass0();
43 System.java
  private static native void registerNatives();
  private static native void setIn0(InputStream in);
  private static native void setIn0(InputStream in);
  private static native void setOut0(PrintStream out);
  private static native void setErr0(PrintStream err);
  public static native long currentTimeMillis();
  public static native void arraycopy(Object src, int src_position,Object dst, int dst_position,int length);
  public static native int identityHashCode(Object x);
  private static native Properties initProperties(Properties props);
  public static native String mapLibraryName(String libname);
44. Thread.java
  public static native Thread currentThread();
  public static native void yield();
  public static native void sleep(long millis) throws InterruptedException;
  public synchronized native void start();
  private native boolean isInterrupted(boolean ClearInterrupted);
  public final native boolean isAlive();
  public native int countStackFrames();
  private native void setPriority0(int newPriority);
  private native void stop0(Object o);
  private native void suspend0();
  private native void resume0();
  private native void interrupt0();
43.Throwable.java
  private native void printStackTrace0(Object s);
  private native void printStackTrace0(Object s);
  public native Throwable fillInStackTrace();

 


1. java.lang.String  
public native String intern();


你可能感兴趣的:(java)