WEB开发网
开发学院WEB开发Jsp Java 库的建立方法及其实例(6) 阅读

Java 库的建立方法及其实例(6)

 2008-01-05 19:11:43 来源:WEB开发网   
核心提示:java 库的建立方法及其实例(6) 接下来,看看Matcher类,Java 库的建立方法及其实例(6),这个类实现了MatchResult interface. 看看MatchResult的定义: [games]$javap -classpath .. -s jregex.MatchResu

  java 库的建立方法及其实例(6)

接下来,看看Matcher类。这个类实现了MatchResult interface. 看看MatchResult的定义:

[games]$javap -classpath .. -s jregex.MatchResult

Compiled from jregex/MatchResult.java

public interface jregex.MatchResult

/* ACC_SUPER bit NOT set */

{

public static final int MATCH;

/* I */

public static final int PREFIX;

/* I */

public static final int SUFFIX;

/* I */

public static final int TARGET;

/* I */

public abstract jregex.Pattern pattern();

/* ()Ljregex/Pattern; */

public abstract int groupCount();

/* ()I */

public abstract boolean isCaptured();

/* ()Z */

public abstract boolean isCaptured(int);

/* (I)Z */

public abstract boolean isCaptured(java.lang.String);

/* (Ljava/lang/String;)Z */

public abstract java.lang.String group(int);

/* (I)Ljava/lang/String; */

public abstract boolean getGroup(int, java.lang.StringBuffer);

/* (ILjava/lang/StringBuffer;)Z */

public abstract boolean getGroup(int, jregex.TextBuffer);

/* (ILjregex/TextBuffer;)Z */

public abstract java.lang.String group(java.lang.String);

/* (Ljava/lang/String;)Ljava/lang/String; */

public abstract boolean getGroup(java.lang.String, java.lang.StringBuffer);

/* (Ljava/lang/String;Ljava/lang/StringBuffer;)Z */

public abstract boolean getGroup(java.lang.String, jregex.TextBuffer);

/* (Ljava/lang/String;Ljregex/TextBuffer;)Z */

public abstract java.lang.String prefix();

/* ()Ljava/lang/String; */

public abstract java.lang.String suffix();

/* ()Ljava/lang/String; */

public abstract java.lang.String target();

/* ()Ljava/lang/String; */

public abstract int targetStart();

/* ()I */

public abstract int targetEnd();

/* ()I */

public abstract char targetChars()[];

/* ()[C */

public abstract int start();

/* ()I */

public abstract int end();

/* ()I */

public abstract int length();

/* ()I */

public abstract int start(int);

Tags:Java 建立 方法

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接