org.apache.batik.css.parser

Class CSSLexicalUnit

public abstract class CSSLexicalUnit extends Object implements LexicalUnit

This class implements the LexicalUnit interface.
Nested Class Summary
protected static classCSSLexicalUnit.DimensionLexicalUnit
This class represents a dimension unit.
protected static classCSSLexicalUnit.FloatLexicalUnit
This class represents a float unit.
protected static classCSSLexicalUnit.FunctionLexicalUnit
This class represents a function unit.
protected static classCSSLexicalUnit.IntegerLexicalUnit
This class represents an integer unit.
protected static classCSSLexicalUnit.PredefinedFunctionLexicalUnit
This class represents a function unit.
protected static classCSSLexicalUnit.SimpleLexicalUnit
This class represents a simple unit.
protected static classCSSLexicalUnit.StringLexicalUnit
This class represents a string unit.
Field Summary
protected shortlexicalUnitType
The lexical unit type.
protected LexicalUnitnextLexicalUnit
The next lexical unit.
protected LexicalUnitpreviousLexicalUnit
The previous lexical unit.
static StringTEXT_COUNTERS_FUNCTION
static StringTEXT_COUNTER_FUNCTION
static StringTEXT_RECT_FUNCTION
static StringTEXT_RGBCOLOR
static StringUNIT_TEXT_CENTIMETER
static StringUNIT_TEXT_DEGREE
static StringUNIT_TEXT_EM
static StringUNIT_TEXT_EX
static StringUNIT_TEXT_GRADIAN
static StringUNIT_TEXT_HERTZ
static StringUNIT_TEXT_INCH
static StringUNIT_TEXT_KILOHERTZ
static StringUNIT_TEXT_MILLIMETER
static StringUNIT_TEXT_MILLISECOND
static StringUNIT_TEXT_PERCENTAGE
static StringUNIT_TEXT_PICA
static StringUNIT_TEXT_PIXEL
static StringUNIT_TEXT_POINT
static StringUNIT_TEXT_RADIAN
static StringUNIT_TEXT_REAL
static StringUNIT_TEXT_SECOND
Constructor Summary
protected CSSLexicalUnit(short t, LexicalUnit prev)
Creates a new LexicalUnit.
Method Summary
static CSSLexicalUnitcreateDimension(float val, String dim, LexicalUnit prev)
Creates a new float lexical unit.
static CSSLexicalUnitcreateFloat(short t, float val, LexicalUnit prev)
Creates a new float lexical unit.
static CSSLexicalUnitcreateFunction(String f, LexicalUnit params, LexicalUnit prev)
Creates a new function lexical unit.
static CSSLexicalUnitcreateInteger(int val, LexicalUnit prev)
Creates a new integer lexical unit.
static CSSLexicalUnitcreatePredefinedFunction(short t, LexicalUnit params, LexicalUnit prev)
Creates a new function lexical unit.
static CSSLexicalUnitcreateSimple(short t, LexicalUnit prev)
Creates a new integer lexical unit.
static CSSLexicalUnitcreateString(short t, String val, LexicalUnit prev)
Creates a new string lexical unit.
StringgetDimensionUnitText()
SAC: Implements LexicalUnit#getDimensionUnitText().
floatgetFloatValue()
SAC: Implements LexicalUnit#getFloatValue().
StringgetFunctionName()
SAC: Implements LexicalUnit#getFunctionName().
intgetIntegerValue()
SAC: Implements LexicalUnit#getIntegerValue().
shortgetLexicalUnitType()
SAC: Implements LexicalUnit#getLexicalUnitType().
LexicalUnitgetNextLexicalUnit()
SAC: Implements LexicalUnit#getNextLexicalUnit().
LexicalUnitgetParameters()
SAC: Implements LexicalUnit#getParameters().
LexicalUnitgetPreviousLexicalUnit()
SAC: Implements LexicalUnit#getPreviousLexicalUnit().
StringgetStringValue()
SAC: Implements LexicalUnit#getStringValue().
LexicalUnitgetSubValues()
SAC: Implements LexicalUnit#getSubValues().
voidsetNextLexicalUnit(LexicalUnit lu)
Sets the next lexical unit.
voidsetPreviousLexicalUnit(LexicalUnit lu)
Sets the previous lexical unit.

Field Detail

lexicalUnitType

protected short lexicalUnitType
The lexical unit type.

nextLexicalUnit

protected LexicalUnit nextLexicalUnit
The next lexical unit.

previousLexicalUnit

protected LexicalUnit previousLexicalUnit
The previous lexical unit.

TEXT_COUNTERS_FUNCTION

public static final String TEXT_COUNTERS_FUNCTION

TEXT_COUNTER_FUNCTION

public static final String TEXT_COUNTER_FUNCTION

TEXT_RECT_FUNCTION

public static final String TEXT_RECT_FUNCTION

TEXT_RGBCOLOR

public static final String TEXT_RGBCOLOR

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

Constructor Detail

CSSLexicalUnit

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

Method Detail

createDimension

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

createFloat

public static CSSLexicalUnit createFloat(short t, float val, 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.

createInteger

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

createPredefinedFunction

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

createSimple

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

createString

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

getDimensionUnitText

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

getFloatValue

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

getFunctionName

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

getIntegerValue

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

getLexicalUnitType

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

getNextLexicalUnit

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

getParameters

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

getPreviousLexicalUnit

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

getStringValue

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

getSubValues

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

setNextLexicalUnit

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

setPreviousLexicalUnit

public void setPreviousLexicalUnit(LexicalUnit lu)
Sets the previous lexical unit.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.