org.acm.seguin.refactor.type
Class CreateClass

java.lang.Object
  extended by org.acm.seguin.refactor.type.CreateClass

public class CreateClass
extends java.lang.Object

This object creates a class from nothing. It is responsible for building up the parse tree from scratch to create a new class.

Author:
Chris Seguin

Constructor Summary
CreateClass(TypeSummary existing, java.lang.String className, boolean parent)
          Constructor for the CreateClass object
CreateClass(TypeSummary existing, java.lang.String className, boolean parent, java.lang.String packageName)
          Constructor for the CreateClass object
 
Method Summary
 java.io.File run()
          Creates the the designated class
 void setAbstract(boolean way)
          Sets the Abstract attribute of the CreateClass object
 void setFinal(boolean way)
          Sets the Final attribute of the CreateClass object
 void setPackageName(java.lang.String value)
          Sets the PackageName attribute of the CreateClass object
 void setScope(java.lang.String value)
          Sets the Scope attribute of the CreateClass object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateClass

public CreateClass(TypeSummary existing,
                   java.lang.String className,
                   boolean parent,
                   java.lang.String packageName)
Constructor for the CreateClass object

Parameters:
existing - The existing class we are building upon
className - The name of the new class
parent - Are we building a parent or child from the existing type
packageName - the name of the package that the class is in

CreateClass

public CreateClass(TypeSummary existing,
                   java.lang.String className,
                   boolean parent)
Constructor for the CreateClass object

Parameters:
existing - The existing class we are building upon
className - The name of the new class
parent - Are we building a parent or child from the existing type
Method Detail

setPackageName

public void setPackageName(java.lang.String value)
Sets the PackageName attribute of the CreateClass object

Parameters:
value - The new PackageName value

setScope

public void setScope(java.lang.String value)
Sets the Scope attribute of the CreateClass object

Parameters:
value - The new Scope value

setAbstract

public void setAbstract(boolean way)
Sets the Abstract attribute of the CreateClass object

Parameters:
way - The new Abstract value

setFinal

public void setFinal(boolean way)
Sets the Final attribute of the CreateClass object

Parameters:
way - The new Final value

run

public java.io.File run()
                 throws RefactoringException
Creates the the designated class

Returns:
Description of the Returned Value
Throws:
RefactoringException - Description of Exception