| java.lang.Object org.openlaszlo.compiler.ElementCompiler org.openlaszlo.compiler.ViewCompiler org.openlaszlo.compiler.ClassCompiler
All known Subclasses: org.openlaszlo.compiler.InterfaceCompiler,
ClassCompiler | class ClassCompiler extends ViewCompiler (Code) | | Compiler for class class elements.
|
Method Summary | |
public void | compile(Element elt) | protected void | compileClass(Element elt, ClassModel classModel, String initobj) | static boolean | isElement(Element element) Returns true iff this class applies to this element. | void | updateSchema(Element element, ViewSchema schema, Set visited) Parse out an XML class definition, add the superclass and
attribute types to the schema. |
DEFAULT_SUPERCLASS_NAME | final static String DEFAULT_SUPERCLASS_NAME(Code) | | For a declaration of a class named "foobar"
<class name="foobar" extends="baz" with="mixin1,mixin2">
We are going to call
LzInstantiateView(
{
name: 'class',
attrs: {
parent: "baz",
initobj: {
name: "foobar",
attrs: { extends: "baz",
with: "mixin1,mixin2"" }
}
}
}
|
compile | public void compile(Element elt)(Code) | | |
isElement | static boolean isElement(Element element)(Code) | | Returns true iff this class applies to this element.
Parameters: element - an element see doc |
updateSchema | void updateSchema(Element element, ViewSchema schema, Set visited)(Code) | | Parse out an XML class definition, add the superclass and
attribute types to the schema.
For each CLASS element, find child ATTRIBUTE tags, and add them
to the schema.
Also, any EVENT tags will be added to the schema as
attributes of type "script".
|
Methods inherited from org.openlaszlo.compiler.ViewCompiler | static void checkUnresolvedResourceReferences(CompilationEnvironment env)(Code)(Java Doc) static void checkUnsupportedMediaTypes(CompilationEnvironment env, Element elt, String url)(Code)(Java Doc) static void collectElementNames(Element element, Set names)(Code)(Java Doc) static void collectLayoutElement(Element element, Set names)(Code)(Java Doc) public void compile(Element element) throws CompilationError(Code)(Java Doc) static void compileAttributes(Element elt, CompilationEnvironment env)(Code)(Java Doc) static void compileClickResources(Element elt, CompilationEnvironment env)(Code)(Java Doc) static void compileResources(Element elt, CompilationEnvironment env)(Code)(Java Doc) void compileXML(Element element, FontInfo fontInfo)(Code)(Java Doc) protected static String getAttributeValue(Element elt, String attrName)(Code)(Java Doc) protected static boolean hasAttribute(Element elt, String attrName)(Code)(Java Doc) static boolean isElement(Element element)(Code)(Java Doc) protected void mapTextMetricsCompilation(Element elt, CompilationEnvironment env, FontInfo fontInfo, Set classList)(Code)(Java Doc) protected static void mergeClassFontInfo(Element elt, FontInfo fontInfo, CompilationEnvironment env)(Code)(Java Doc) protected static void mergeClassFontInfo(ClassModel classinfo, FontInfo fontInfo)(Code)(Java Doc) protected static void mergeFontAttributes(Element elt, FontInfo fontInfo)(Code)(Java Doc) static void preprocess(Element elt, CompilationEnvironment env)(Code)(Java Doc) static void setFontInfo(FontInfo info, Element elt)(Code)(Java Doc)
|
|
|