public class StylesheetHelper extends Object
Stylesheet, Rule and Selector
and extract all the compiler logic from this class.
In that way we can make the compiler as a single module and a runtime as another module.| Modifier and Type | Class and Description |
|---|---|
static class |
StylesheetHelper.MouseEventEnum |
static class |
StylesheetHelper.PseudoClassEnum |
| Constructor and Description |
|---|
StylesheetHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
appliesTo(jaxx.runtime.css.Rule rule,
CompiledObject object) |
static int |
appliesTo(jaxx.runtime.css.Selector selector,
CompiledObject object) |
static void |
applyPseudoClass(String pseudoClass,
Map<String,String> properties,
CompiledObject object,
JAXXCompiler compiler,
int priority) |
static void |
applyTo(CompiledObject object,
JAXXCompiler compiler,
jaxx.runtime.css.Stylesheet stylesheet,
jaxx.runtime.css.Stylesheet overrides) |
static void |
compilePseudoClass(String pseudoClass,
CompiledObject object,
String propertyCode,
int pos,
String methodName,
JAXXCompiler compiler,
boolean invertTest) |
static MethodDescriptor |
getAddMouseListenerMethod(CompiledObject object) |
static Map<String,String> |
getApplicableProperties(jaxx.runtime.css.Stylesheet s,
CompiledObject object) |
static jaxx.runtime.css.Rule[] |
getApplicablePseudoClasses(jaxx.runtime.css.Stylesheet s,
CompiledObject object) |
static ClassDescriptor |
getMouseEventDescriptor() |
static ClassDescriptor |
getMouseListenerDescriptor() |
static MethodDescriptor |
getMouseListenerMethod(CompiledObject object,
String property) |
static jaxx.runtime.css.Rule |
inlineAttribute(CompiledObject object,
String propertyName,
boolean dataBinding) |
static jaxx.runtime.css.Rule |
processRule(SimpleNode ruleNode) |
static jaxx.runtime.css.Selector |
processSelector(SimpleNode selector) |
static jaxx.runtime.css.Stylesheet |
processStylesheet(String stylesheetText) |
static String |
unwrap(ClassDescriptor type,
String valueCode) |
public static jaxx.runtime.css.Stylesheet processStylesheet(String stylesheetText) throws CompilerException
CompilerExceptionpublic static jaxx.runtime.css.Rule processRule(SimpleNode ruleNode)
public static jaxx.runtime.css.Selector processSelector(SimpleNode selector)
public static ClassDescriptor getMouseEventDescriptor()
public static ClassDescriptor getMouseListenerDescriptor()
public static MethodDescriptor getAddMouseListenerMethod(CompiledObject object)
public static MethodDescriptor getMouseListenerMethod(CompiledObject object, String property)
public static void applyTo(CompiledObject object, JAXXCompiler compiler, jaxx.runtime.css.Stylesheet stylesheet, jaxx.runtime.css.Stylesheet overrides) throws CompilerException
CompilerExceptionpublic static String unwrap(ClassDescriptor type, String valueCode)
public static void applyPseudoClass(String pseudoClass, Map<String,String> properties, CompiledObject object, JAXXCompiler compiler, int priority) throws CompilerException
CompilerExceptionpublic static void compilePseudoClass(String pseudoClass, CompiledObject object, String propertyCode, int pos, String methodName, JAXXCompiler compiler, boolean invertTest) throws CompilerException
CompilerExceptionpublic static Map<String,String> getApplicableProperties(jaxx.runtime.css.Stylesheet s, CompiledObject object) throws CompilerException
CompilerExceptionpublic static jaxx.runtime.css.Rule[] getApplicablePseudoClasses(jaxx.runtime.css.Stylesheet s,
CompiledObject object)
throws CompilerException
CompilerExceptionpublic static jaxx.runtime.css.Rule inlineAttribute(CompiledObject object, String propertyName, boolean dataBinding)
public static int appliesTo(jaxx.runtime.css.Rule rule,
CompiledObject object)
throws CompilerException
CompilerExceptionpublic static int appliesTo(jaxx.runtime.css.Selector selector,
CompiledObject object)
Copyright © 2008–2014 CodeLutin. All rights reserved.