|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.badgersinfoil.metaas.ASSourceFactory
public class ASSourceFactory
Core class providing access to metaas functionality.
Constructor Summary | |
---|---|
ASSourceFactory()
|
Method Summary | |
---|---|
ASBlock |
newBlock()
|
CompilationUnit |
newClass(java.lang.String qualifiedClassName)
Creates a new CompilationUnit which defines a class with the given name. |
ASProject |
newEmptyASProject(java.lang.String outputLocation)
|
CompilationUnit |
newInterface(java.lang.String qualifiedInterfaceName)
Creates a new CompilationUnit which defines an interface with the given name. |
ASParser |
newParser()
|
ASWriter |
newWriter()
|
static java.lang.String |
str(java.lang.String str)
Escape the given String and place within double quotes so that it will be a valid ActionScript string literal. |
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 newClass(java.lang.String qualifiedClassName)
CompilationUnit cu = fact.newClass("MyTest"); ASTClassType myclass = (ASTClassType)cu.getType(); // ... add stuff to myclass ...
public CompilationUnit newInterface(java.lang.String qualifiedInterfaceName)
CompilationUnit cu = fact.newClass("MyTest"); ASTClassType myiface = (ASTInterfaceType)cu.getType(); // ... add stuff to myiface ...
public ASWriter newWriter()
public ASParser newParser()
public static java.lang.String str(java.lang.String str)
public ASBlock newBlock()
public ASProject newEmptyASProject(java.lang.String outputLocation)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |