|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.jdom.DOMFactory
Standard implementation of IDOMFactory
, and the only means
of creating JDOMs and document fragments.
This class may be instantiated; it is not intended to be subclassed.
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 IDOMFactory
sourceCode
- the source code character array, or null
name
- 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 IDOMFactory
sourceCode
- the source code string, or null
name
- the name of the compilation unit
null
if unable to recognize
the source code, or if the source code is null
public IDOMField createField()
IDOMFactory
"Object"
, name "aField"
,
no comment, and no initializer.
createField
in interface IDOMFactory
public IDOMField createField(String sourceCode)
IDOMFactory
createField
in interface IDOMFactory
sourceCode
- 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 IDOMFactory
public IDOMImport createImport(String sourceCode)
IDOMFactory
createImport
in interface IDOMFactory
sourceCode
- the source code
null
if unable to recognize
the source code, or if the source code is null
public IDOMInitializer createInitializer()
IDOMFactory
createInitializer
in interface IDOMFactory
public IDOMInitializer createInitializer(String sourceCode)
IDOMFactory
createInitializer
in interface IDOMFactory
sourceCode
- the source code
null
if unable to recognize
the source code, or if the source code is null
public IDOMMethod createMethod()
IDOMFactory
"void"
, be named
"newMethod"
, have no parameters, no comment, and an empty body.
createMethod
in interface IDOMFactory
public IDOMMethod createMethod(String sourceCode)
IDOMFactory
createMethod
in interface IDOMFactory
sourceCode
- the source code
null
if unable to recognize
the source code, or if the source code is null
public IDOMPackage createPackage()
IDOMFactory
createPackage
in interface IDOMFactory
public IDOMPackage createPackage(String sourceCode)
IDOMFactory
createPackage
in interface IDOMFactory
sourceCode
- the source code
null
if unable to recognize
the source code, or if the source code is null
public IDOMType createType()
IDOMFactory
"AClass"
, with no members or comment.
createType
in interface IDOMFactory
public IDOMType createClass()
IDOMFactory
"AClass"
, with no members or comment.
createClass
in interface IDOMFactory
public IDOMType createInterface()
IDOMFactory
"AnInterface"
, with no members or comment.
createInterface
in interface IDOMFactory
public IDOMType createType(String sourceCode)
IDOMFactory
createType
in interface IDOMFactory
sourceCode
- the source code
null
if unable to recognize
the source code, or if the source code is null
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |