|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
java.lang.Objectorg.apache.tools.ant.types.EnumeratedAttribute
jp.hishidama.ant.types.htlex.MatchEnum
public class MatchEnum
文字列マッチングクラス.
文字列の比較を行うクラス。
| フィールドの概要 | |
|---|---|
static String |
EQUALS
"equals":単純比較 |
static String |
FIND
"find":正規表現で検索 |
static String |
IGNORE_CASE
"ignorecase":大文字小文字を無視して比較 |
static String |
MATCHES
"matches":正規表現で一致 |
| コンストラクタの概要 | |
|---|---|
MatchEnum()
|
|
MatchEnum(String s)
|
|
| メソッドの概要 | |
|---|---|
Pattern |
getPattern()
比較パターン取得. |
String |
getPatternString()
比較文字列取得. |
String[] |
getValues()
|
boolean |
matches(String s)
マッチング判断. |
void |
setPattern(String comp)
比較文字列設定. |
| クラス org.apache.tools.ant.types.EnumeratedAttribute から継承されたメソッド |
|---|
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final String IGNORE_CASE
public static final String EQUALS
public static final String FIND
Matcher.find(),
定数フィールド値public static final String MATCHES
Matcher.matches(),
定数フィールド値| コンストラクタの詳細 |
|---|
public MatchEnum()
public MatchEnum(String s)
| メソッドの詳細 |
|---|
public String[] getValues()
org.apache.tools.ant.types.EnumeratedAttribute 内の getValuespublic void setPattern(String comp)
comp - 比較元文字列public String getPatternString()
public Pattern getPattern()
public boolean matches(String s)
s - 比較対象文字列(nullの場合は空文字列として判断する)
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||