Method Summary |
|
public static File | URLtoFile(URL url) |
public static File | URLtoFile(String urlString) |
public void | addDependencyClass(String className) |
protected void | addEventHandlers(JavaFile javaFile) |
public void | addImport(String text) |
public void | addInlineStyle(CompiledObject object, String propertyName, boolean dataBinding) |
protected void | addPropertyChangeSupport(JavaFile javaFile) |
public void | addScriptField(FieldDescriptor field) |
public void | addScriptMethod(MethodDescriptor method) |
public static String | capitalize(String s) |
public String | checkJavaCode(String javaCode) Verifies that a snippet of Java code parses correctly. |
public void | checkOverride(CompiledObject object) |
public void | closeComponent(CompiledObject component) |
public static synchronized boolean | compile(File base, String[] relativePaths, CompilerOptions options) Compiled a set of files, expressed as paths relative to a base directory. |
public static synchronized boolean | compile(File[] files, String[] classNames, CompilerOptions options) Compiled a set of files, with the class names specified explicitly. |
public void | compileFirstPass(Element tag) |
public void | compileSecondPass(Element tag) |
protected JavaMethod | createCompleteSetupMethod() |
protected JavaMethod | createConstructor(String className) |
public static JAXXCompiler | createDummyCompiler() Creates a dummy JAXXCompiler for use in unit testing. |
public static JAXXCompiler | createDummyCompiler(ClassLoader classLoader) Creates a dummy JAXXCompiler for use in unit testing. |
protected JavaMethod | createGetJAXXObjectDescriptorMethod() |
protected JavaMethod | createGetObjectByIdMethod() |
protected JavaMethod | createInitializer(String className) |
protected JavaField | createJAXXObjectDescriptorField() |
protected void | createJavaFile(String packageName, String className) |
protected JavaMethod | createProcessDataBindingMethod() |
public static String | escapeJavaString(String raw) Escapes a string using standard Java escape sequences, generally in preparation to including it in a string literal
in a compiled Java file. |
public String | getAutoId(ClassDescriptor objectClass) |
public File | getBaseDir() |
public static String | getCanonicalName(Class clazz) |
public static String | getCanonicalName(ClassDescriptor clazz) |
public ClassLoader | getClassLoader() Returns a ClassLoader which searches the user-specified class path in addition
to the normal system class path. |
public CompiledObject | getCompiledObject(String id) |
protected String | getCreationCode(CompiledObject object) |
public String | getEventHandlerMethodName(EventHandler handler) |
public Set | getImportedClasses() |
public Set | getImportedPackages() |
public static JAXXCompiler | getJAXXCompiler(String className) Returns the compiler instance which is processing the specified JAXX class. |
public JAXXObjectDescriptor | getJAXXObjectDescriptor() |
public JavaFile | getJavaFile() |
public static String | getLineSeparator() Returns the system line separator string. |
public CompiledObject | getOpenComponent() |
public CompilerOptions | getOptions() |
public String | getOutputClassName() |
public CompiledObject | getRootObject() |
public static SAXParser | getSAXParser() |
public FieldDescriptor[] | getScriptFields() |
public ScriptManager | getScriptManager() |
public MethodDescriptor[] | getScriptMethods() |
public Stack | getSourceFiles() |
public Stylesheet | getStylesheet() |
public SymbolTable | getSymbolTable() |
public static SymbolTable | getSymbolTable(String className) Returns the symbol table for the specified JAXX class. |
public String | getUniqueId(Object object) |
public static String | getVersion() |
public static void | init() |
public static void | loadLibraries() |
public static void | main(String[] arg) |
public void | openComponent(CompiledObject component) |
public void | openComponent(CompiledObject component, String constraints) |
public void | openInvisibleComponent(CompiledObject component) |
protected void | outputClass(String packageName, String className, PrintWriter out) |
public static Document | parseDocument(InputStream in) |
public String[] | parseParameterList(String parameters) |
public String | preprocessScript(String script) |
public String | processDataBindings(String stringValue, ClassDescriptor type) Examine an attribute value for data binding expressions. |
public void | registerCompiledObject(CompiledObject object) |
public void | registerDataBinding(String src, String dest, String assignment) |
public void | registerEventHandler(EventHandler handler) |
public void | registerInitializer(Runnable r) Registers a Runnable which will be executed after the first
compilation pass is complete. |
public void | registerScript(String script) |
public void | registerScript(String script, File sourceFile) |
public void | registerStylesheet(Stylesheet stylesheet) |
public void | reportError(String error) |
public void | reportError(CompilerException ex) |
public void | reportError(String extraMessage, CompilerException ex) |
public void | reportError(Element tag, String error) |
public void | reportError(Element tag, String error, int lineOffset) |
public void | reportError(int lineNumber, String error) |
public void | reportWarning(String warning) |
public void | reportWarning(Element tag, String warning, int lineOffset) |