jp.hishidama.ant.types.htlex
クラス StringOpeEnum

java.lang.Object
  上位を拡張 org.apache.tools.ant.types.EnumeratedAttribute
      上位を拡張 jp.hishidama.ant.types.htlex.StringOpeEnum

public class StringOpeEnum
extends org.apache.tools.ant.types.EnumeratedAttribute

文字列置換クラス.

文字列の置換を行うクラス。

導入されたバージョン:
2009.01.30
バージョン:
2010.01.31
作成者:
ひしだま

フィールドの概要
static String EVAL
          "evaluate":演算
static String LET
          "let":単純代入(置換)
static String REP_ALL
          "replaceAll":全置換
static String REP_FIRST
          "replaceFirst":先頭文字列のみ置換
 
コンストラクタの概要
StringOpeEnum()
           
StringOpeEnum(String s)
           
 
メソッドの概要
 String convert(String s, String n)
          変換実行.
 String[] getValues()
           
 void setProject(org.apache.tools.ant.Project project)
           
 void validate(MatchEnum me, org.apache.tools.ant.Location loc)
          精査実行.
 
クラス org.apache.tools.ant.types.EnumeratedAttribute から継承されたメソッド
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

LET

public static final String LET
"let":単純代入(置換)

関連項目:
定数フィールド値

REP_FIRST

public static final String REP_FIRST
"replaceFirst":先頭文字列のみ置換

関連項目:
Matcher.replaceFirst(String), 定数フィールド値

REP_ALL

public static final String REP_ALL
"replaceAll":全置換

関連項目:
Matcher.replaceAll(String), 定数フィールド値

EVAL

public static final String EVAL
"evaluate":演算

関連項目:
定数フィールド値
コンストラクタの詳細

StringOpeEnum

public StringOpeEnum()

StringOpeEnum

public StringOpeEnum(String s)
メソッドの詳細

setProject

public void setProject(org.apache.tools.ant.Project project)

getValues

public String[] getValues()
定義:
クラス org.apache.tools.ant.types.EnumeratedAttribute 内の getValues

validate

public void validate(MatchEnum me,
                     org.apache.tools.ant.Location loc)
              throws org.apache.tools.ant.BuildException
精査実行.

パラメータ:
me - マッチング方法
loc - データタイプ位置
例外:
org.apache.tools.ant.BuildException - 精査エラー時

convert

public String convert(String s,
                      String n)
変換実行.

パラメータ:
s - 変換元文字列
n - 変換先文字列
戻り値:
変換後文字列