com.sun.javafx.api
Class JavafxcTask

java.lang.Object
  extended by com.sun.javafx.api.JavafxcTask
All Implemented Interfaces:
JavafxCompiler.CompilationTask, java.util.concurrent.Callable<java.lang.Boolean>

public abstract class JavafxcTask
extends java.lang.Object
implements JavafxCompiler.CompilationTask

Provides access to functionality specific to the JavaFX Script compiler, based on JavacTask.

See Also:
JavacTask

Constructor Summary
JavafxcTask()
           
 
Method Summary
abstract  java.lang.Iterable<? extends com.sun.source.tree.CompilationUnitTree> analyze()
          Complete all analysis prior to conversion of the JavaFX Script compiler AST to Javac AST.
abstract  int errorCheck()
          Check the specified files for errors.
abstract  java.lang.Iterable<? extends javax.tools.JavaFileObject> generate()
          Generate code.
abstract  javax.lang.model.util.Elements getElements()
          Get a utility object for dealing with program elements.
abstract  javax.lang.model.type.TypeMirror getTypeMirror(java.lang.Iterable<? extends com.sun.source.tree.Tree> path)
          Get a type mirror of the tree node determined by the specified path.
abstract  javax.lang.model.util.Types getTypes()
          Get a utility object for dealing with type mirrors.
abstract  java.lang.Iterable<? extends com.sun.source.tree.CompilationUnitTree> parse()
          Parse the specified files returning a list of abstract syntax trees.
abstract  void setTaskListener(com.sun.source.util.TaskListener taskListener)
          The specified listener will receive events describing the progress of this compilation task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.javafx.api.JavafxCompiler.CompilationTask
call
 

Constructor Detail

JavafxcTask

public JavafxcTask()
Method Detail

parse

public abstract java.lang.Iterable<? extends com.sun.source.tree.CompilationUnitTree> parse()
                                                                                     throws java.io.IOException
Parse the specified files returning a list of abstract syntax trees.

Returns:
a list of abstract syntax trees
Throws:
java.io.IOException - if an unhandled I/O error occurred in the compiler.

errorCheck

public abstract int errorCheck()
                        throws java.io.IOException
Check the specified files for errors.

Returns:
the number of compilation errors found
Throws:
java.io.IOException - if an unhandled I/O error occurred in the compiler.

analyze

public abstract java.lang.Iterable<? extends com.sun.source.tree.CompilationUnitTree> analyze()
                                                                                       throws java.io.IOException
Complete all analysis prior to conversion of the JavaFX Script compiler AST to Javac AST.

Returns:
a list of abstract syntax trees
Throws:
java.io.IOException - if an unhandled I/O error occurred in the compiler.

generate

public abstract java.lang.Iterable<? extends javax.tools.JavaFileObject> generate()
                                                                           throws java.io.IOException
Generate code.

Returns:
a list of files that were generated
Throws:
java.io.IOException - if an unhandled I/O error occurred in the compiler.

setTaskListener

public abstract void setTaskListener(com.sun.source.util.TaskListener taskListener)
The specified listener will receive events describing the progress of this compilation task.


getTypeMirror

public abstract javax.lang.model.type.TypeMirror getTypeMirror(java.lang.Iterable<? extends com.sun.source.tree.Tree> path)
Get a type mirror of the tree node determined by the specified path.


getElements

public abstract javax.lang.model.util.Elements getElements()
Get a utility object for dealing with program elements.


getTypes

public abstract javax.lang.model.util.Types getTypes()
Get a utility object for dealing with type mirrors.