2 * parse-processing stage
4 * License : The MIT License
5 * Copyright(c) 2010 MikuToga Partners
8 package jp.sourceforge.mikutoga.parser;
14 public abstract class ParseStage {
16 private final String name;
20 * 進行ステージ名は実行時クラス名(パッケージ名抜き)が指定される。
22 protected ParseStage(){
25 Class<?> klass = getClass();
26 String fullName = klass.getName();
27 int idx = fullName.lastIndexOf('.');
31 stripName = fullName.substring(idx + 1);
36 this.name = stripName;
44 * @throws NullPointerException 引数がnull
46 protected ParseStage(String name) throws NullPointerException{
48 if(name == null) throw new NullPointerException();
56 * @return {@inheritDoc} 進行ステージ名
59 public String toString(){