uk.co.badgersinfoil.metaas
Class ActionScriptFactory

java.lang.Object
  extended by uk.co.badgersinfoil.metaas.ActionScriptFactory

public class ActionScriptFactory
extends java.lang.Object

Core class providing access to metaas functionality.


Constructor Summary
ActionScriptFactory()
           
 
Method Summary
 ASBlock newBlock()
          Creates a new ActionScript block statement.
 ASCompilationUnit newClass(java.lang.String qualifiedClassName)
          Creates a new CompilationUnit which defines a class with the given name.
 ActionScriptProject newEmptyASProject(java.lang.String outputLocation)
           
 ASCompilationUnit newInterface(java.lang.String qualifiedInterfaceName)
          Creates a new CompilationUnit which defines an interface with the given name.
 ActionScriptParser newParser()
           
 ActionScriptWriter 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

ActionScriptFactory

public ActionScriptFactory()
Method Detail

newClass

public ASCompilationUnit newClass(java.lang.String qualifiedClassName)
Creates a new CompilationUnit which defines a class with the given name. To populate the new class, you can do something like,
 CompilationUnit cu = fact.newClass("MyTest");
 ASTClassType myclass = (ASTClassType)cu.getType();
 // ... add stuff to myclass  ...
 


newInterface

public ASCompilationUnit newInterface(java.lang.String qualifiedInterfaceName)
Creates a new CompilationUnit which defines an interface with the given name. To populate the new interface, you can do something like,
 CompilationUnit cu = fact.newClass("MyTest");
 ASTClassType myiface = (ASTInterfaceType)cu.getType();
 // ... add stuff to myiface  ...
 


newWriter

public ActionScriptWriter newWriter()

newParser

public ActionScriptParser newParser()

str

public 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.


newBlock

public ASBlock newBlock()
Creates a new ActionScript block statement. Can be supplied to an ASIfStatement, for instance.


newEmptyASProject

public ActionScriptProject newEmptyASProject(java.lang.String outputLocation)


Copyright © 2006-2007 David Holroyd. All Rights Reserved.