org.eclipse.cdt.internal.ui.wizards.classwizard
Class NewClassCodeGenerator
java.lang.Object
org.eclipse.cdt.internal.ui.wizards.classwizard.NewClassCodeGenerator
public class NewClassCodeGenerator
- extends java.lang.Object
Constructor Summary |
NewClassCodeGenerator(org.eclipse.core.runtime.IPath headerPath,
org.eclipse.core.runtime.IPath sourcePath,
java.lang.String className,
java.lang.String namespace,
IBaseClassInfo[] baseClasses,
IMethodStub[] methodStubs)
|
Method Summary |
java.lang.String |
constructHeaderFileContent(org.eclipse.cdt.core.model.ITranslationUnit headerTU,
java.util.List publicMethods,
java.util.List protectedMethods,
java.util.List privateMethods,
java.lang.String oldContents,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
java.lang.String |
constructSourceFileContent(org.eclipse.cdt.core.model.ITranslationUnit sourceTU,
org.eclipse.cdt.core.model.ITranslationUnit headerTU,
java.util.List publicMethods,
java.util.List protectedMethods,
java.util.List privateMethods,
java.lang.String oldContents,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
org.eclipse.cdt.core.model.ICElement |
createClass(org.eclipse.core.runtime.IProgressMonitor monitor)
Creates the new class. |
org.eclipse.cdt.core.model.ICElement |
getCreatedClass()
|
org.eclipse.core.resources.IFile |
getCreatedHeaderFile()
|
org.eclipse.cdt.core.model.ITranslationUnit |
getCreatedHeaderTU()
|
org.eclipse.core.resources.IFile |
getCreatedSourceFile()
|
org.eclipse.cdt.core.model.ITranslationUnit |
getCreatedSourceTU()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewClassCodeGenerator
public NewClassCodeGenerator(org.eclipse.core.runtime.IPath headerPath,
org.eclipse.core.runtime.IPath sourcePath,
java.lang.String className,
java.lang.String namespace,
IBaseClassInfo[] baseClasses,
IMethodStub[] methodStubs)
getCreatedClass
public org.eclipse.cdt.core.model.ICElement getCreatedClass()
getCreatedHeaderTU
public org.eclipse.cdt.core.model.ITranslationUnit getCreatedHeaderTU()
getCreatedHeaderFile
public org.eclipse.core.resources.IFile getCreatedHeaderFile()
getCreatedSourceTU
public org.eclipse.cdt.core.model.ITranslationUnit getCreatedSourceTU()
getCreatedSourceFile
public org.eclipse.core.resources.IFile getCreatedSourceFile()
createClass
public org.eclipse.cdt.core.model.ICElement createClass(org.eclipse.core.runtime.IProgressMonitor monitor)
throws NewClassCodeGenerator.CodeGeneratorException,
org.eclipse.core.runtime.CoreException,
java.lang.InterruptedException
- Creates the new class.
- Parameters:
monitor
- a progress monitor to report progress.
- Throws:
org.eclipse.core.runtime.CoreException
- Thrown when the creation failed.
java.lang.InterruptedException
- Thrown when the operation was cancelled.
NewClassCodeGenerator.CodeGeneratorException
constructHeaderFileContent
public java.lang.String constructHeaderFileContent(org.eclipse.cdt.core.model.ITranslationUnit headerTU,
java.util.List publicMethods,
java.util.List protectedMethods,
java.util.List privateMethods,
java.lang.String oldContents,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws NewClassCodeGenerator.CodeGeneratorException
- Throws:
NewClassCodeGenerator.CodeGeneratorException
constructSourceFileContent
public java.lang.String constructSourceFileContent(org.eclipse.cdt.core.model.ITranslationUnit sourceTU,
org.eclipse.cdt.core.model.ITranslationUnit headerTU,
java.util.List publicMethods,
java.util.List protectedMethods,
java.util.List privateMethods,
java.lang.String oldContents,
org.eclipse.core.runtime.IProgressMonitor monitor)