javap -s 查看java方法签名

$ javap -s java.lang.String
Compiled from "String.java"
public final class java.lang.String extends java.lang.Object implements java.io.Serializable,java.lang.Comparable,java.lang.CharSequence{
public static final java.util.Comparator CASE_INSENSITIVE_ORDER;
  Signature: Ljava/util/Comparator;
public java.lang.String();
  Signature: ()V
public java.lang.String(java.lang.String);
  Signature: (Ljava/lang/String;)V
public java.lang.String(char[]);
  Signature: ([C)V
public java.lang.String(char[], int, int);
  Signature: ([CII)V
public java.lang.String(int[], int, int);
  Signature: ([III)V
public java.lang.String(byte[], int, int, int);
  Signature: ([BIII)V
public java.lang.String(byte[], int);
  Signature: ([BI)V
public java.lang.String(byte[], int, int, java.lang.String)   throws java.io.UnsupportedEncodingException;
  Signature: ([BIILjava/lang/String;)V
public java.lang.String(byte[], int, int, java.nio.charset.Charset);
  Signature: ([BIILjava/nio/charset/Charset;)V
public java.lang.String(byte[], java.lang.String)   throws java.io.UnsupportedEncodingException;
  Signature: ([BLjava/lang/String;)V
public java.lang.String(byte[], java.nio.charset.Charset);
  Signature: ([BLjava/nio/charset/Charset;)V
public java.lang.String(byte[], int, int);
  Signature: ([BII)V
...

查看自定义类:

转到class目录下执行:

s$ javap -s com.gqw.android.jni.SphinxJniCall
Compiled from "SphinxJniCall.java"
public class com.gqw.android.jni.SphinxJniCall extends java.lang.Object{
static {};
  Signature: ()V
public boolean isbInit();
  Signature: ()Z
public void setbInit(boolean);
  Signature: (Z)V
public com.gqw.android.jni.SphinxJniCall(com.gqw.android.AndroidSphinxActivity);
  Signature: (Lcom/gqw/android/AndroidSphinxActivity;)V
public void showSphinxStep(int);
  Signature: (I)V
public void showSphinxString(java.lang.String);
  Signature: (Ljava/lang/String;)V
public native boolean initSphinx(java.lang.String);
  Signature: (Ljava/lang/String;)Z
public native boolean startSphinx();
  Signature: ()Z
public native boolean stopSphinx();
  Signature: ()Z
public native java.lang.String getSphinxResult();
  Signature: ()Ljava/lang/String;
public native boolean destroySphinx();
  Signature: ()Z
}

参考:

http://www.herongyang.com/Java-Tools/javap-Look-Up-Method-Signature.html

你可能感兴趣的:(java,c,BI,Class,byte)