|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.parser.CSSLexicalUnit
This class implements the CSSLexicalUnit.SimpleLexicalUnit
interface.
Inner Class Summary | |
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. |
Field Summary | |
protected short |
lexicalUnitType
The lexical unit type. |
protected LexicalUnit |
nextLexicalUnit
The next lexical unit. |
protected LexicalUnit |
previousLexicalUnit
The previous lexical unit. |
Constructor Summary | |
protected |
CSSLexicalUnit(short t,
LexicalUnit prev)
Creates a new LexicalUnit. |
Method Summary | |
static CSSLexicalUnit |
createDimension(float val,
java.lang.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(java.lang.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,
java.lang.String val,
LexicalUnit prev)
Creates a new string lexical unit. |
java.lang.String |
getDimensionUnitText()
SAC: Implements getDimensionUnitText() . |
float |
getFloatValue()
SAC: Implements getFloatValue() . |
java.lang.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() . |
java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected short lexicalUnitType
protected LexicalUnit nextLexicalUnit
protected LexicalUnit previousLexicalUnit
Constructor Detail |
protected CSSLexicalUnit(short t, LexicalUnit prev)
Method Detail |
public short getLexicalUnitType()
getLexicalUnitType()
.getLexicalUnitType
in interface LexicalUnit
public LexicalUnit getNextLexicalUnit()
getNextLexicalUnit()
.getNextLexicalUnit
in interface LexicalUnit
public void setNextLexicalUnit(LexicalUnit lu)
public LexicalUnit getPreviousLexicalUnit()
getPreviousLexicalUnit()
.getPreviousLexicalUnit
in interface LexicalUnit
public void setPreviousLexicalUnit(LexicalUnit lu)
public int getIntegerValue()
getIntegerValue()
.getIntegerValue
in interface LexicalUnit
org.w3c.css.sac.LexicalUnit
LexicalUnit.SAC_INTEGER
public float getFloatValue()
getFloatValue()
.getFloatValue
in interface LexicalUnit
org.w3c.css.sac.LexicalUnit
LexicalUnit.SAC_REAL
,
LexicalUnit.SAC_DIMENSION
,
LexicalUnit.SAC_EM
,
LexicalUnit.SAC_EX
,
LexicalUnit.SAC_PIXEL
,
LexicalUnit.SAC_INCH
,
LexicalUnit.SAC_CENTIMETER
,
LexicalUnit.SAC_MILLIMETER
,
LexicalUnit.SAC_POINT
,
LexicalUnit.SAC_PICA
,
LexicalUnit.SAC_PERCENTAGE
,
LexicalUnit.SAC_DEGREE
,
LexicalUnit.SAC_GRADIAN
,
LexicalUnit.SAC_RADIAN
,
LexicalUnit.SAC_MILLISECOND
,
LexicalUnit.SAC_SECOND
,
LexicalUnit.SAC_HERTZ
,
LexicalUnit.SAC_KILOHERTZ
public java.lang.String getDimensionUnitText()
getDimensionUnitText()
.getDimensionUnitText
in interface LexicalUnit
org.w3c.css.sac.LexicalUnit
LexicalUnit.SAC_REAL
,
LexicalUnit.SAC_DIMENSION
,
LexicalUnit.SAC_EM
,
LexicalUnit.SAC_EX
,
LexicalUnit.SAC_PIXEL
,
LexicalUnit.SAC_INCH
,
LexicalUnit.SAC_CENTIMETER
,
LexicalUnit.SAC_MILLIMETER
,
LexicalUnit.SAC_POINT
,
LexicalUnit.SAC_PICA
,
LexicalUnit.SAC_PERCENTAGE
,
LexicalUnit.SAC_DEGREE
,
LexicalUnit.SAC_GRADIAN
,
LexicalUnit.SAC_RADIAN
,
LexicalUnit.SAC_MILLISECOND
,
LexicalUnit.SAC_SECOND
,
LexicalUnit.SAC_HERTZ
,
LexicalUnit.SAC_KILOHERTZ
public java.lang.String getFunctionName()
getFunctionName()
.getFunctionName
in interface LexicalUnit
org.w3c.css.sac.LexicalUnit
LexicalUnit.SAC_COUNTER_FUNCTION
,
LexicalUnit.SAC_COUNTERS_FUNCTION
,
LexicalUnit.SAC_RECT_FUNCTION
,
LexicalUnit.SAC_FUNCTION
,
LexicalUnit.SAC_RGBCOLOR
public LexicalUnit getParameters()
getParameters()
.getParameters
in interface LexicalUnit
org.w3c.css.sac.LexicalUnit
LexicalUnit.SAC_COUNTER_FUNCTION
,
LexicalUnit.SAC_COUNTERS_FUNCTION
,
LexicalUnit.SAC_RECT_FUNCTION
,
LexicalUnit.SAC_FUNCTION
,
LexicalUnit.SAC_RGBCOLOR
public java.lang.String getStringValue()
getStringValue()
.getStringValue
in interface LexicalUnit
org.w3c.css.sac.LexicalUnit
LexicalUnit.SAC_URI
,
LexicalUnit.SAC_ATTR
,
LexicalUnit.SAC_IDENT
,
LexicalUnit.SAC_STRING_VALUE
,
@@TO BE DEFINED
public LexicalUnit getSubValues()
getSubValues()
.getSubValues
in interface LexicalUnit
org.w3c.css.sac.LexicalUnit
LexicalUnit.SAC_SUB_EXPRESSION
public static CSSLexicalUnit createSimple(short t, LexicalUnit prev)
public static CSSLexicalUnit createInteger(int val, LexicalUnit prev)
public static CSSLexicalUnit createFloat(short t, float val, LexicalUnit prev)
public static CSSLexicalUnit createDimension(float val, java.lang.String dim, LexicalUnit prev)
public static CSSLexicalUnit createFunction(java.lang.String f, LexicalUnit params, LexicalUnit prev)
public static CSSLexicalUnit createPredefinedFunction(short t, LexicalUnit params, LexicalUnit prev)
public static CSSLexicalUnit createString(short t, java.lang.String val, LexicalUnit prev)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |