| java.lang.Object org.openlaszlo.compiler.ElementCompiler org.openlaszlo.compiler.ToplevelCompiler org.openlaszlo.compiler.LibraryCompiler org.openlaszlo.compiler.StyleSheetCompiler
StyleSheetCompiler | class StyleSheetCompiler extends LibraryCompiler (Code) | | Compiler for stylesheet elements.
author: Benjamin Shine |
buildConditionalSelectorJS | String buildConditionalSelectorJS(Condition cond, SimpleSelector simpleSelector)(Code) | | |
buildDescendantSelector | String buildDescendantSelector(DescendantSelector ds)(Code) | | Build a string holding the javascript to create the selector at runtime, where
the selector is a descendant selector, ie
E F
would be
descendantrule.selector = [
"E",
"F" ];
The selector is specified as an array of selectors, ancestor first.
|
buildPropertiesJavascript | String buildPropertiesJavascript(Rule rule)(Code) | | Build a string holding the javascript to create the rule's properties attribute.
This should just be a standard javascript object composed of attributes and values,
wrapped in curly quotes. Escape the quotes for attributes' values.
for example "{ width: 500, occupation: \"pet groomer and holistic veterinarian\",
miscdata: \"spends most days indoors\"}""
|
compile | public void compile(Element element)(Code) | | |
isElement | static boolean isElement(Element element)(Code) | | Returns true iff this class applies to this element.
Parameters: element - an element see doc |
Methods inherited from org.openlaszlo.compiler.ToplevelCompiler | static void collectReferences(CompilationEnvironment env, Element element, Set defined, Set referenced, Map libsVisited)(Code)(Java Doc) public void compile(Element element)(Code)(Java Doc) static String getBaseLibraryName(CompilationEnvironment env)(Code)(Java Doc) static List getLibraries(CompilationEnvironment env, Element element, Map explanations, Map autoIncluded, Map visited)(Code)(Java Doc) static List getLibraries(CompilationEnvironment env, Element element, Map explanations, Set autoIncluded, Set visited)(Code)(Java Doc) List getLibraries(Element element)(Code)(Java Doc) static void handleAutoincludes(CompilationEnvironment env, Element element)(Code)(Java Doc) static boolean isElement(Element element)(Code)(Java Doc) void updateSchema(Element element, ViewSchema schema, Set visited)(Code)(Java Doc)
|
|
|