| java.lang.Object org.openlaszlo.compiler.ElementCompiler org.openlaszlo.compiler.ToplevelCompiler
All known Subclasses: org.openlaszlo.compiler.ImportCompiler, org.openlaszlo.compiler.LibraryCompiler, org.openlaszlo.compiler.CanvasCompiler,
ToplevelCompiler | abstract class ToplevelCompiler extends ElementCompiler (Code) | | Compiler for canvas and library elements.
|
Method Summary | |
static void | collectReferences(CompilationEnvironment env, Element element, Set defined, Set referenced, Map libsVisited) This also collects "attribute", "method", and HTML element
names, but that's okay since none of them has an autoinclude
entry. | public void | compile(Element element) | static String | getBaseLibraryName(CompilationEnvironment env) | static List | getLibraries(CompilationEnvironment env, Element element, Map explanations, Map autoIncluded, Map visited) | static List | getLibraries(CompilationEnvironment env, Element element, Map explanations, Set autoIncluded, Set visited) | List | getLibraries(Element element) | static void | handleAutoincludes(CompilationEnvironment env, Element element) | static boolean | isElement(Element element) Returns true if the element is capable of acting as a toplevel
element. | void | updateSchema(Element element, ViewSchema schema, Set visited) Parses out user class definitions. |
collectReferences | static void collectReferences(CompilationEnvironment env, Element element, Set defined, Set referenced, Map libsVisited)(Code) | | This also collects "attribute", "method", and HTML element
names, but that's okay since none of them has an autoinclude
entry.
|
compile | public void compile(Element element)(Code) | | |
getLibraries | List getLibraries(Element element)(Code) | | |
isElement | static boolean isElement(Element element)(Code) | | Returns true if the element is capable of acting as a toplevel
element. This is independent of whether it's positioned as a
toplevel element; CompilerUtils.isTopLevel() tests for position
as well.
|
updateSchema | void updateSchema(Element element, ViewSchema schema, Set visited)(Code) | | Parses out user class definitions.
Iterates the direct children of the top level of the DOM tree and
look for elements named "class", find the "name" and "extends"
attributes, and enter them in the ViewSchema.
Parameters: visited - {canonical filenames} for libraries whoseschemas have been visited; used to prevent recursiveprocessing. |
|
|