Package com.inet.lib.less
Class JavaScriptExpression
- java.lang.Object
-
- com.inet.lib.less.Expression
-
- com.inet.lib.less.JavaScriptExpression
-
public class JavaScriptExpression extends Expression
An expression with JavaScript.
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMMENTstatic intCSS_AT_RULEstatic intEXPRESSIONstatic intEXTENDSstatic intMIXINstatic intPROPERTYstatic intREFERENCE_INFOstatic intRULE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(CssFormatter formatter)booleanbooleanValue(CssFormatter formatter)Get the boolean valuedoubledoubleValue(CssFormatter formatter)Get the numeric value.intgetDataType(CssFormatter formatter)The data type of the expressioncom.inet.lib.less.OperationlistValue(CssFormatter formatter)Get the value as a listjava.lang.Stringunit(CssFormatter formatter)Get the unit of a NUMBER value.-
Methods inherited from class com.inet.lib.less.Expression
getType, prepare, stringValue, toString
-
-
-
-
Field Detail
-
PROPERTY
public static final int PROPERTY
- See Also:
- Constant Field Values
-
RULE
public static final int RULE
- See Also:
- Constant Field Values
-
MIXIN
public static final int MIXIN
- See Also:
- Constant Field Values
-
EXPRESSION
public static final int EXPRESSION
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
CSS_AT_RULE
public static final int CSS_AT_RULE
- See Also:
- Constant Field Values
-
EXTENDS
public static final int EXTENDS
- See Also:
- Constant Field Values
-
REFERENCE_INFO
public static final int REFERENCE_INFO
- See Also:
- Constant Field Values
-
-
Method Detail
-
appendTo
public void appendTo(CssFormatter formatter)
- Overrides:
appendToin classExpression
-
getDataType
public int getDataType(CssFormatter formatter)
The data type of the expression- Specified by:
getDataTypein classExpression- Parameters:
formatter- the CCS target- Returns:
- one of the constant
-
doubleValue
public double doubleValue(CssFormatter formatter)
Get the numeric value.- Specified by:
doubleValuein classExpression- Parameters:
formatter- the CCS target- Returns:
- the value
-
booleanValue
public boolean booleanValue(CssFormatter formatter)
Get the boolean value- Specified by:
booleanValuein classExpression- Parameters:
formatter- the CCS target- Returns:
- the value
-
unit
public java.lang.String unit(CssFormatter formatter)
Get the unit of a NUMBER value.- Specified by:
unitin classExpression- Parameters:
formatter- the CCS target- Returns:
- the unit or empty string if nothing
-
listValue
public com.inet.lib.less.Operation listValue(CssFormatter formatter)
Get the value as a list- Overrides:
listValuein classExpression- Parameters:
formatter- the CCS target- Returns:
- the value
-
-