| Package | Description |
|---|---|
| cz.vutbr.web.css | |
| cz.vutbr.web.csskit | |
| cz.vutbr.web.csskit.antlr | |
| cz.vutbr.web.domassign |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TermAngle |
interface |
TermColor
Holds color value directly usable in Java.
|
interface |
TermExpression
Holds an expression() value
|
interface |
TermFrequency
Holds frequency term
|
interface |
TermFunction
Holds name of CSS function and terms stored inside
|
interface |
TermIdent
Holds CSS identificator
|
interface |
TermInteger
Holds integer value
|
interface |
TermLength
Holds float value with associated units (CSS length)
|
interface |
TermLengthOrPercent
Holds a float number which is either a CSS length or percentage.
|
interface |
TermList
Holds list of terms and allows access to them as to collection
|
interface |
TermNumber
Holds numeric value where units are not allowed
|
interface |
TermNumeric<T>
Holds value of numeric type.
|
interface |
TermPair<K,V> |
interface |
TermPercent
Holds numeric value which is of type of percent
|
interface |
TermString
Holds string value
|
interface |
TermTime
Holds CSS time value
|
interface |
TermURI
Holds CSS URI value
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Term<?>> |
NodeData.getValue(Class<T> clazz,
String name)
Returns value of property of given name and supposed type.
|
<T extends Term<?>> |
NodeData.getValue(Class<T> clazz,
String name,
boolean includeInherited)
Returns value of property of given name and supposed type.
|
| Modifier and Type | Method and Description |
|---|---|
<V> Term<V> |
TermFactory.createTerm(V value) |
Term<?> |
SupportedCSS.getDefaultValue(String propertyName)
Some CSSProperties have even additional values.
|
Term<?> |
NodeData.getValue(String name,
boolean includeInherited)
Returns value of property of given name as a generic type.
|
Term<T> |
Term.setOperator(Term.Operator operator)
Sets operator
|
Term<T> |
Term.setValue(T value)
Setter for value
|
| Modifier and Type | Class and Description |
|---|---|
class |
TermAngleImpl |
class |
TermColorImpl
TermColor
TODO: Clipping should be done against devices gamut
|
class |
TermExpressionImpl
TermExpression
|
class |
TermFrequencyImpl |
class |
TermFunctionImpl
TermFunction, holds function
|
class |
TermIdentImpl
TermIdent
|
class |
TermImpl<T>
Term
|
class |
TermIntegerImpl |
class |
TermLengthImpl |
class |
TermListImpl |
class |
TermNumberImpl
TermIdent
|
class |
TermNumericImpl<T> |
class |
TermPairImpl<K,V> |
class |
TermPercentImpl
TermPercent
|
class |
TermStringImpl
TermString
|
class |
TermTimeImpl |
class |
TermURIImpl
TermURIImpl
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Term<?>> |
TermListImpl.value |
| Modifier and Type | Method and Description |
|---|---|
<V> Term<V> |
TermFactoryImpl.createTerm(V value) |
Term<?> |
TermListImpl.get(int arg0) |
Term<?> |
TermListImpl.remove(int index) |
Term<T> |
TermImpl.setOperator(Term.Operator operator) |
Term<T> |
TermImpl.setValue(T value) |
| Modifier and Type | Method and Description |
|---|---|
List<Term<?>> |
TermListImpl.getValue() |
Iterator<Term<?>> |
TermListImpl.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
TermListImpl.add(int index,
Term<?> element) |
boolean |
TermListImpl.add(Term<?> o) |
| Modifier and Type | Method and Description |
|---|---|
TermList |
TermListImpl.setValue(List<Term<?>> value) |
| Modifier and Type | Method and Description |
|---|---|
List<Term<?>> |
CSSTreeParser.terms() |
| Modifier and Type | Field and Description |
|---|---|
protected List<Term<?>> |
Variator.terms
Terms over which variants are tested
|
protected List<Term<?>> |
Repeater.terms
Terms over which operation is repeated
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Term<?>> |
SingleMapNodeData.getValue(Class<T> clazz,
String name) |
<T extends Term<?>> |
QuadrupleMapNodeData.getValue(Class<T> clazz,
String name) |
<T extends Term<?>> |
SingleMapNodeData.getValue(Class<T> clazz,
String name,
boolean includeInherited) |
<T extends Term<?>> |
QuadrupleMapNodeData.getValue(Class<T> clazz,
String name,
boolean includeInherited) |
| Modifier and Type | Method and Description |
|---|---|
Term<?> |
SupportedCSS3.getDefaultValue(String property) |
Term<?> |
SupportedCSS21.getDefaultValue(String property) |
Term<?> |
SingleMapNodeData.getValue(String name,
boolean includeInherited) |
Term<?> |
QuadrupleMapNodeData.getValue(String name,
boolean includeInherited) |
| Modifier and Type | Method and Description |
|---|---|
void |
Variator.assignTerms(Term<?>... terms)
Assigns terms to be checked by variator
|
void |
Repeater.assignTerms(Term<?>... terms)
Assigns terms to repeater
|
protected boolean |
Variator.checkInherit(int variant,
Term<?> term,
Map<String,CSSProperty> properties)
Solves variant which leads to
inherit CSS Property value. |
protected <T extends CSSProperty> |
DeclarationTransformer.genericTerm(Class<? extends Term<?>> termType,
Term<?> term,
String propertyName,
T typeIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Check whether given declaration contains one term of given type.
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermColor(Term<?> term,
String propertyName,
T colorIdentification,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into Color and stored values and types in maps
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermIdent(Class<T> type,
Term<?> term,
boolean avoidInherit,
String propertyName,
Map<String,CSSProperty> properties)
Converts TermIdent into value of CSSProperty for given class
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermLength(Term<?> term,
String propertyName,
T lengthIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into TermLength and stores values and types in maps
|
boolean |
Variator.tryMultiTermVariant(int variant,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values,
Term<?>... terms)
Uses variator functionality to test selected variant on more terms.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Variator.assignDefaults(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Assigns the default values to all the properties.
|
void |
Repeater.assignDefaults(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Assigns the default values to all the properties.
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrColor(Class<T> type,
T colorIdentification,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Processes declaration which is supposed to contain one identification
term or one TermColor
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrInteger(Class<T> type,
T integerIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrIntegerOrNumber(Class<T> type,
T integerIdentification,
T numberIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericOneIdentOrLength(Class<T> type,
T lengthIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends Enum<T> & CSSProperty> |
DeclarationTransformer.genericOneIdentOrLengthOrPercent(Class<T> type,
T lengthIdentification,
T percentIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected <T extends CSSProperty> |
DeclarationTransformer.genericTerm(Class<? extends Term<?>> termType,
Term<?> term,
String propertyName,
T typeIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Check whether given declaration contains one term of given type.
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTerm(Class<? extends Term<?>> termType,
Term<?> term,
String propertyName,
T typeIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Check whether given declaration contains one term of given type.
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermColor(Term<?> term,
String propertyName,
T colorIdentification,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into Color and stored values and types in maps
|
protected <T extends CSSProperty> |
DeclarationTransformer.genericTermLength(Term<?> term,
String propertyName,
T lengthIdentification,
boolean sanify,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Converts term into TermLength and stores values and types in maps
|
protected <T extends Enum<T> & CSSProperty> |
DeclarationTransformer.genericTwoIdentsOrLengthsOrPercents(Class<T> type,
T listIdentification,
boolean sanify,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values) |
protected abstract boolean |
Repeater.operation(int iteration,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Repeating operation
|
boolean |
DeclarationTransformer.parseDeclaration(Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Core function.
|
boolean |
Repeater.repeat(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Repeats operations on terms
|
boolean |
Repeater.repeatOverFourTermDeclaration(Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Construct terms array to be used by repeated object from available terms
(in size 1 to 4) according to CSS rules.
|
boolean |
Variator.tryMultiTermVariant(int variant,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values,
Term<?>... terms)
Uses variator functionality to test selected variant on more terms.
|
boolean |
Variator.tryOneTermVariant(int variant,
Declaration d,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Uses variator functionality to test selected variant on term
|
protected abstract boolean |
Variator.variant(int variant,
Variator.IntegerRef iteration,
Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
This function contains parsing block for variants
|
boolean |
Variator.vary(Map<String,CSSProperty> properties,
Map<String,Term<?>> values)
Test all terms
|
Copyright © 2014. All rights reserved.