|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.badgersinfoil.metaas.ASSourceFactory
Core class providing access to metaas functionality.
Constructor Summary | |
ASSourceFactory()
|
Method Summary | |
CompilationUnit |
newClass(java.lang.String qualifiedClassName)
Creates a new CompilationUnit which defines a class with the given name. |
CompilationUnit |
newInterface(java.lang.String qualifiedInterfaceName)
Creates a new CompilationUnit which defines an interface with the given name. |
CompilationUnit |
parse(java.io.Reader in)
Parse an entire ActionScript source file from the given Reader, returning a from CompilationUnit which details of the type contained in the file can be obtained. |
void |
write(java.io.Writer writer,
CompilationUnit cu)
Writes the ActionScript code in the given CompilationUnit to the given Writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ASSourceFactory()
Method Detail |
public CompilationUnit parse(java.io.Reader in)
public CompilationUnit newClass(java.lang.String qualifiedClassName)
CompilationUnit cu = fact.newClass("MyTest"); ASTClassType myclass = (ASTClassType)cu.getType(); // ... add stuff to myclass ...
public void write(java.io.Writer writer, CompilationUnit cu) throws java.io.IOException
java.io.IOException
public CompilationUnit newInterface(java.lang.String qualifiedInterfaceName)
CompilationUnit cu = fact.newClass("MyTest"); ASTClassType myiface = (ASTInterfaceType)cu.getType(); // ... add stuff to myiface ...
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |