public class DOMFactory extends Object implements IDOMFactory
IDOMFactory, and the only means
of creating JDOMs and document fragments.
This class may be instantiated; it is not intended to be subclassed.
| Constructor and Description |
|---|
DOMFactory()
Deprecated.
Creates a new DOM factory.
|
| Modifier and Type | Method and Description |
|---|---|
IDOMType |
createClass()
Deprecated.
Creates a default type document fragment.
|
IDOMCompilationUnit |
createCompilationUnit()
Deprecated.
Creates and return an empty JDOM.
|
IDOMCompilationUnit |
createCompilationUnit(char[] sourceCode,
String name)
Deprecated.
Creates a JDOM on the given source code.
|
IDOMCompilationUnit |
createCompilationUnit(String sourceCode,
String name)
Deprecated.
Creates a JDOM on the given source code.
|
IDOMField |
createField()
Deprecated.
Creates a default field document fragment.
|
IDOMField |
createField(String sourceCode)
Deprecated.
Creates a field document fragment on the given source code.
|
IDOMImport |
createImport()
Deprecated.
Creates an empty import document fragment.
|
IDOMImport |
createImport(String sourceCode)
Deprecated.
Creates an import document fragment on the given source code.
|
IDOMInitializer |
createInitializer()
Deprecated.
Creates an empty initializer document fragment.
|
IDOMInitializer |
createInitializer(String sourceCode)
Deprecated.
Creates an initializer document fragment from the given source code.
|
IDOMType |
createInterface()
Deprecated.
Creates a default type document fragment.
|
IDOMMethod |
createMethod()
Deprecated.
Creates a default method document fragment.
|
IDOMMethod |
createMethod(String sourceCode)
Deprecated.
Creates a method document fragment on the given source code.
|
IDOMPackage |
createPackage()
Deprecated.
Creates an empty package document fragment.
|
IDOMPackage |
createPackage(String sourceCode)
Deprecated.
Creates a package document fragment on the given source code.
|
IDOMType |
createType()
Deprecated.
Creates a default type document fragment.
|
IDOMType |
createType(String sourceCode)
Deprecated.
Creates a type document fragment on the given source code.
|
public IDOMCompilationUnit createCompilationUnit()
IDOMFactorycreateCompilationUnit in interface IDOMFactorypublic IDOMCompilationUnit createCompilationUnit(char[] sourceCode, String name)
IDOMFactorycreateCompilationUnit in interface IDOMFactorysourceCode - the source code character array, or nullname - the name of the compilation unitnull if unable to recognize
the source code, or if the source code is nullpublic IDOMCompilationUnit createCompilationUnit(String sourceCode, String name)
IDOMFactorycreateCompilationUnit in interface IDOMFactorysourceCode - the source code string, or nullname - the name of the compilation unitnull if unable to recognize
the source code, or if the source code is nullpublic IDOMField createField()
IDOMFactory"Object", name "aField",
no comment, and no initializer.createField in interface IDOMFactorypublic IDOMField createField(String sourceCode)
IDOMFactorycreateField in interface IDOMFactorysourceCode - the source codenull if unable to recognize
the source code, if the source code is null, or when the source
contains more than one VariableDeclarator clausepublic IDOMImport createImport()
IDOMFactory"java.lang.*" and be non-static.createImport in interface IDOMFactorypublic IDOMImport createImport(String sourceCode)
IDOMFactorycreateImport in interface IDOMFactorysourceCode - the source codenull if unable to recognize
the source code, or if the source code is nullpublic IDOMInitializer createInitializer()
IDOMFactorycreateInitializer in interface IDOMFactorypublic IDOMInitializer createInitializer(String sourceCode)
IDOMFactorycreateInitializer in interface IDOMFactorysourceCode - the source codenull if unable to recognize
the source code, or if the source code is nullpublic IDOMMethod createMethod()
IDOMFactory"void", be named
"newMethod", have no parameters, no comment, and an empty body.createMethod in interface IDOMFactorypublic IDOMMethod createMethod(String sourceCode)
IDOMFactorycreateMethod in interface IDOMFactorysourceCode - the source codenull if unable to recognize
the source code, or if the source code is nullpublic IDOMPackage createPackage()
IDOMFactorycreatePackage in interface IDOMFactorypublic IDOMPackage createPackage(String sourceCode)
IDOMFactorycreatePackage in interface IDOMFactorysourceCode - the source codenull if unable to recognize
the source code, or if the source code is nullpublic IDOMType createType()
IDOMFactory"AClass", with no members or comment.createType in interface IDOMFactorypublic IDOMType createClass()
IDOMFactory"AClass", with no members or comment.createClass in interface IDOMFactorypublic IDOMType createInterface()
IDOMFactory"AnInterface", with no members or comment.createInterface in interface IDOMFactorypublic IDOMType createType(String sourceCode)
IDOMFactorycreateType in interface IDOMFactorysourceCode - the source codenull if unable to recognize
the source code, or if the source code is nullCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.