jp.cssj.sakae.sac.parser
クラス CSSLexicalUnit

java.lang.Object
  拡張jp.cssj.sakae.sac.parser.CSSLexicalUnit
すべての実装インタフェース:
LexicalUnit
直系の既知のサブクラス:
CSSLexicalUnit.DimensionLexicalUnit, CSSLexicalUnit.FloatLexicalUnit, CSSLexicalUnit.FunctionLexicalUnit, CSSLexicalUnit.IntegerLexicalUnit, CSSLexicalUnit.PredefinedFunctionLexicalUnit, CSSLexicalUnit.SimpleLexicalUnit, CSSLexicalUnit.StringLexicalUnit

public abstract class CSSLexicalUnit
extends Object
implements LexicalUnit

This class implements the CSSLexicalUnit.SimpleLexicalUnitinterface.

バージョン:
$Id: CSSLexicalUnit.java,v 1.2 2007-05-06 04:24:08 miyabe Exp $
作成者:
Stephane Hillion

入れ子クラスの概要
protected static class CSSLexicalUnit.DimensionLexicalUnit
          This class represents a dimension unit.
protected static class CSSLexicalUnit.FloatLexicalUnit
          This class represents a float unit.
protected static class CSSLexicalUnit.FunctionLexicalUnit
          This class represents a function unit.
protected static class CSSLexicalUnit.IntegerLexicalUnit
          This class represents an integer unit.
protected static class CSSLexicalUnit.PredefinedFunctionLexicalUnit
          This class represents a function unit.
protected static class CSSLexicalUnit.SimpleLexicalUnit
          This class represents a simple unit.
protected static class CSSLexicalUnit.StringLexicalUnit
          This class represents a string unit.
 
フィールドの概要
protected  short lexicalUnitType
          The lexical unit type.
protected  LexicalUnit nextLexicalUnit
          The next lexical unit.
protected  LexicalUnit previousLexicalUnit
          The previous lexical unit.
static String UNIT_TEXT_CENTIMETER
           
static String UNIT_TEXT_DEGREE
           
static String UNIT_TEXT_EM
           
static String UNIT_TEXT_EX
           
static String UNIT_TEXT_GRADIAN
           
static String UNIT_TEXT_HERTZ
           
static String UNIT_TEXT_INCH
           
static String UNIT_TEXT_KILOHERTZ
           
static String UNIT_TEXT_MILLIMETER
           
static String UNIT_TEXT_MILLISECOND
           
static String UNIT_TEXT_PERCENTAGE
           
static String UNIT_TEXT_PICA
           
static String UNIT_TEXT_PIXEL
           
static String UNIT_TEXT_POINT
           
static String UNIT_TEXT_RADIAN
           
static String UNIT_TEXT_REAL
           
static String UNIT_TEXT_SECOND
           
 
インタフェース org.w3c.css.sac.LexicalUnit から継承したフィールド
SAC_ATTR, SAC_CENTIMETER, SAC_COUNTER_FUNCTION, SAC_COUNTERS_FUNCTION, SAC_DEGREE, SAC_DIMENSION, SAC_EM, SAC_EX, SAC_FUNCTION, SAC_GRADIAN, SAC_HERTZ, SAC_IDENT, SAC_INCH, SAC_INHERIT, SAC_INTEGER, SAC_KILOHERTZ, SAC_MILLIMETER, SAC_MILLISECOND, SAC_OPERATOR_COMMA, SAC_OPERATOR_EXP, SAC_OPERATOR_GE, SAC_OPERATOR_GT, SAC_OPERATOR_LE, SAC_OPERATOR_LT, SAC_OPERATOR_MINUS, SAC_OPERATOR_MOD, SAC_OPERATOR_MULTIPLY, SAC_OPERATOR_PLUS, SAC_OPERATOR_SLASH, SAC_OPERATOR_TILDE, SAC_PERCENTAGE, SAC_PICA, SAC_PIXEL, SAC_POINT, SAC_RADIAN, SAC_REAL, SAC_RECT_FUNCTION, SAC_RGBCOLOR, SAC_SECOND, SAC_STRING_VALUE, SAC_SUB_EXPRESSION, SAC_UNICODERANGE, SAC_URI
 
コンストラクタの概要
protected CSSLexicalUnit(short t, LexicalUnit prev)
          Creates a new LexicalUnit.
 
メソッドの概要
static CSSLexicalUnit createDimension(float val, String dim, LexicalUnit prev)
          Creates a new float lexical unit.
static CSSLexicalUnit createFloat(short t, float val, LexicalUnit prev)
          Creates a new float lexical unit.
static CSSLexicalUnit createFunction(String f, LexicalUnit params, LexicalUnit prev)
          Creates a new function lexical unit.
static CSSLexicalUnit createInteger(int val, LexicalUnit prev)
          Creates a new integer lexical unit.
static CSSLexicalUnit createPredefinedFunction(short t, LexicalUnit params, LexicalUnit prev)
          Creates a new function lexical unit.
static CSSLexicalUnit createSimple(short t, LexicalUnit prev)
          Creates a new integer lexical unit.
static CSSLexicalUnit createString(short t, String val, LexicalUnit prev)
          Creates a new string lexical unit.
 String getDimensionUnitText()
          SAC : Implements getDimensionUnitText().
 float getFloatValue()
          SAC : Implements getFloatValue().
 String getFunctionName()
          SAC : Implements getFunctionName().
 int getIntegerValue()
          SAC : Implements getIntegerValue().
 short getLexicalUnitType()
          SAC : Implements getLexicalUnitType().
 LexicalUnit getNextLexicalUnit()
          SAC : Implements getNextLexicalUnit().
 LexicalUnit getParameters()
          SAC : Implements getParameters().
 LexicalUnit getPreviousLexicalUnit()
          SAC : Implements getPreviousLexicalUnit().
 String getStringValue()
          SAC : Implements getStringValue().
 LexicalUnit getSubValues()
          SAC : Implements getSubValues().
 void setNextLexicalUnit(LexicalUnit lu)
          Sets the next lexical unit.
 void setPreviousLexicalUnit(LexicalUnit lu)
          Sets the previous lexical unit.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

UNIT_TEXT_CENTIMETER

public static final String UNIT_TEXT_CENTIMETER
関連項目:
定数フィールド値

UNIT_TEXT_DEGREE

public static final String UNIT_TEXT_DEGREE
関連項目:
定数フィールド値

UNIT_TEXT_EM

public static final String UNIT_TEXT_EM
関連項目:
定数フィールド値

UNIT_TEXT_EX

public static final String UNIT_TEXT_EX
関連項目:
定数フィールド値

UNIT_TEXT_GRADIAN

public static final String UNIT_TEXT_GRADIAN
関連項目:
定数フィールド値

UNIT_TEXT_HERTZ

public static final String UNIT_TEXT_HERTZ
関連項目:
定数フィールド値

UNIT_TEXT_INCH

public static final String UNIT_TEXT_INCH
関連項目:
定数フィールド値

UNIT_TEXT_KILOHERTZ

public static final String UNIT_TEXT_KILOHERTZ
関連項目:
定数フィールド値

UNIT_TEXT_MILLIMETER

public static final String UNIT_TEXT_MILLIMETER
関連項目:
定数フィールド値

UNIT_TEXT_MILLISECOND

public static final String UNIT_TEXT_MILLISECOND
関連項目:
定数フィールド値

UNIT_TEXT_PERCENTAGE

public static final String UNIT_TEXT_PERCENTAGE
関連項目:
定数フィールド値

UNIT_TEXT_PICA

public static final String UNIT_TEXT_PICA
関連項目:
定数フィールド値

UNIT_TEXT_PIXEL

public static final String UNIT_TEXT_PIXEL
関連項目:
定数フィールド値

UNIT_TEXT_POINT

public static final String UNIT_TEXT_POINT
関連項目:
定数フィールド値

UNIT_TEXT_RADIAN

public static final String UNIT_TEXT_RADIAN
関連項目:
定数フィールド値

UNIT_TEXT_REAL

public static final String UNIT_TEXT_REAL
関連項目:
定数フィールド値

UNIT_TEXT_SECOND

public static final String UNIT_TEXT_SECOND
関連項目:
定数フィールド値

lexicalUnitType

protected short lexicalUnitType
The lexical unit type.


nextLexicalUnit

protected LexicalUnit nextLexicalUnit
The next lexical unit.


previousLexicalUnit

protected LexicalUnit previousLexicalUnit
The previous lexical unit.

コンストラクタの詳細

CSSLexicalUnit

protected CSSLexicalUnit(short t,
                         LexicalUnit prev)
Creates a new LexicalUnit.

メソッドの詳細

getLexicalUnitType

public short getLexicalUnitType()
SAC : Implements getLexicalUnitType().

定義:
インタフェース LexicalUnit 内の getLexicalUnitType

getNextLexicalUnit

public LexicalUnit getNextLexicalUnit()
SAC : Implements getNextLexicalUnit().

定義:
インタフェース LexicalUnit 内の getNextLexicalUnit

setNextLexicalUnit

public void setNextLexicalUnit(LexicalUnit lu)
Sets the next lexical unit.


getPreviousLexicalUnit

public LexicalUnit getPreviousLexicalUnit()
SAC : Implements getPreviousLexicalUnit().

定義:
インタフェース LexicalUnit 内の getPreviousLexicalUnit

setPreviousLexicalUnit

public void setPreviousLexicalUnit(LexicalUnit lu)
Sets the previous lexical unit.


getIntegerValue

public int getIntegerValue()
SAC : Implements getIntegerValue().

定義:
インタフェース LexicalUnit 内の getIntegerValue

getFloatValue

public float getFloatValue()
SAC : Implements getFloatValue().

定義:
インタフェース LexicalUnit 内の getFloatValue

getDimensionUnitText

public String getDimensionUnitText()
SAC : Implements getDimensionUnitText().

定義:
インタフェース LexicalUnit 内の getDimensionUnitText

getFunctionName

public String getFunctionName()
SAC : Implements getFunctionName().

定義:
インタフェース LexicalUnit 内の getFunctionName

getParameters

public LexicalUnit getParameters()
SAC : Implements getParameters().

定義:
インタフェース LexicalUnit 内の getParameters

getStringValue

public String getStringValue()
SAC : Implements getStringValue().

定義:
インタフェース LexicalUnit 内の getStringValue

getSubValues

public LexicalUnit getSubValues()
SAC : Implements getSubValues().

定義:
インタフェース LexicalUnit 内の getSubValues

createSimple

public static CSSLexicalUnit createSimple(short t,
                                          LexicalUnit prev)
Creates a new integer lexical unit.


createInteger

public static CSSLexicalUnit createInteger(int val,
                                           LexicalUnit prev)
Creates a new integer lexical unit.


createFloat

public static CSSLexicalUnit createFloat(short t,
                                         float val,
                                         LexicalUnit prev)
Creates a new float lexical unit.


createDimension

public static CSSLexicalUnit createDimension(float val,
                                             String dim,
                                             LexicalUnit prev)
Creates a new float lexical unit.


createFunction

public static CSSLexicalUnit createFunction(String f,
                                            LexicalUnit params,
                                            LexicalUnit prev)
Creates a new function lexical unit.


createPredefinedFunction

public static CSSLexicalUnit createPredefinedFunction(short t,
                                                      LexicalUnit params,
                                                      LexicalUnit prev)
Creates a new function lexical unit.


createString

public static CSSLexicalUnit createString(short t,
                                          String val,
                                          LexicalUnit prev)
Creates a new string lexical unit.



(c)2009 GNN & Co.,Ltd.