|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.core.jdom.DOMFactory
public class DOMFactory
Standard implementation of IDOMFactory, and the only means
of creating JDOMs and document fragments.
This class may be instantiated.
| Constructor Summary | |
|---|---|
DOMFactory()
Deprecated. Creates a new DOM factory. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMFactory()
| Method Detail |
|---|
public IDOMCompilationUnit createCompilationUnit()
IDOMFactory
createCompilationUnit in interface IDOMFactory
public IDOMCompilationUnit createCompilationUnit(char[] sourceCode,
String name)
IDOMFactory
createCompilationUnit in interface IDOMFactorysourceCode - the source code character array, or nullname - the name of the compilation unit
null if unable to recognize
the source code, or if the source code is null
public IDOMCompilationUnit createCompilationUnit(String sourceCode,
String name)
IDOMFactory
createCompilationUnit in interface IDOMFactorysourceCode - the source code string, or nullname - the name of the compilation unit
null 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)
IDOMFactory
createField in interface IDOMFactorysourceCode - the source code
null 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)
IDOMFactory
createImport in interface IDOMFactorysourceCode - the source code
null if unable to recognize
the source code, or if the source code is nullpublic IDOMInitializer createInitializer()
IDOMFactory
createInitializer in interface IDOMFactorypublic IDOMInitializer createInitializer(String sourceCode)
IDOMFactory
createInitializer in interface IDOMFactorysourceCode - the source code
null 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)
IDOMFactory
createMethod in interface IDOMFactorysourceCode - the source code
null if unable to recognize
the source code, or if the source code is nullpublic IDOMPackage createPackage()
IDOMFactory
createPackage in interface IDOMFactorypublic IDOMPackage createPackage(String sourceCode)
IDOMFactory
createPackage in interface IDOMFactorysourceCode - the source code
null 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)
IDOMFactory
createType in interface IDOMFactorysourceCode - the source code
null if unable to recognize
the source code, or if the source code is null
|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.