public class SimpleDOMBuilder extends AbstractDOMBuilder implements ISourceElementRequestor
ISourceElementRequestor.FieldInfo, ISourceElementRequestor.MethodInfo, ISourceElementRequestor.ParameterInfo, ISourceElementRequestor.TypeInfo, ISourceElementRequestor.TypeParameterInfofAbort, fBuildingCU, fBuildingType, fDocument, fFieldCount, fLineStartPositions, fNode, fStack| Constructor and Description |
|---|
SimpleDOMBuilder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptImport(int declarationStart,
int declarationEnd,
int nameStart,
int nameEnd,
char[][] tokens,
boolean onDemand,
int modifiers)
Deprecated.
|
void |
acceptPackage(ImportReference importReference)
Deprecated.
|
void |
acceptProblem(CategorizedProblem problem)
Deprecated.
Does nothing.
|
IDOMCompilationUnit |
createCompilationUnit(ICompilationUnit compilationUnit)
Deprecated.
|
IDOMCompilationUnit |
createCompilationUnit(java.lang.String sourceCode,
java.lang.String name)
Deprecated.
|
protected void |
enterAbstractMethod(ISourceElementRequestor.MethodInfo methodInfo)
Deprecated.
Creates a new DOMMethod and inizializes.
|
void |
enterConstructor(ISourceElementRequestor.MethodInfo methodInfo)
Deprecated.
|
void |
enterField(ISourceElementRequestor.FieldInfo fieldInfo)
Deprecated.
|
void |
enterInitializer(int declarationSourceStart,
int modifiers)
Deprecated.
|
void |
enterMethod(ISourceElementRequestor.MethodInfo methodInfo)
Deprecated.
|
void |
enterType(ISourceElementRequestor.TypeInfo typeInfo)
Deprecated.
|
void |
exitConstructor(int declarationEnd)
Deprecated.
Finishes the configuration of the method DOM object which
was created by a previous enterConstructor call.
|
void |
exitField(int initializationStart,
int declarationEnd,
int declarationSourceEnd)
Deprecated.
|
void |
exitInitializer(int declarationEnd)
Deprecated.
|
protected void |
exitMember(int declarationEnd)
Deprecated.
Finishes the configuration of the member.
|
void |
exitMethod(int declarationEnd,
Expression defaultValue)
Deprecated.
|
void |
exitType(int declarationEnd)
Deprecated.
|
protected SourceElementParser |
getParser(java.util.Map<java.lang.String,java.lang.String> settings)
Deprecated.
Creates a new parser.
|
acceptLineSeparatorPositions, addChild, createCompilationUnit, enterCompilationUnit, exitCompilationUnit, exitType, getLineStart, initializeBuildacceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptLineSeparatorPositions, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference, enterCompilationUnit, exitCompilationUnitpublic void acceptProblem(CategorizedProblem problem)
acceptProblem in interface ISourceElementRequestorpublic void acceptImport(int declarationStart,
int declarationEnd,
int nameStart,
int nameEnd,
char[][] tokens,
boolean onDemand,
int modifiers)
acceptImport in interface ISourceElementRequestordeclarationStart - This is the position of the first character of the import
keyword.declarationEnd - This is the position of the ';' ending the import statement or
the end of the comment following the import.nameStart - This is the position of the first character of the import declaration's
name.nameEnd - This is the position of the last character of the import declaration's
name.tokens - This are the tokens of the import like specified in the source.onDemand - set to true if the import is an import on demand (e.g. import
java.io.*). False otherwise.modifiers - can be set to static from 1.5 on.public void acceptPackage(ImportReference importReference)
acceptPackage in interface ISourceElementRequestorpublic IDOMCompilationUnit createCompilationUnit(java.lang.String sourceCode, java.lang.String name)
public IDOMCompilationUnit createCompilationUnit(ICompilationUnit compilationUnit)
createCompilationUnit in class AbstractDOMBuilderIDOMFactory.createCompilationUnit(String, String)protected void enterAbstractMethod(ISourceElementRequestor.MethodInfo methodInfo)
public void enterConstructor(ISourceElementRequestor.MethodInfo methodInfo)
enterConstructor in interface ISourceElementRequestorpublic void enterField(ISourceElementRequestor.FieldInfo fieldInfo)
enterField in interface ISourceElementRequestorpublic void enterInitializer(int declarationSourceStart,
int modifiers)
enterInitializer in interface ISourceElementRequestorpublic void enterMethod(ISourceElementRequestor.MethodInfo methodInfo)
enterMethod in interface ISourceElementRequestorpublic void enterType(ISourceElementRequestor.TypeInfo typeInfo)
enterType in interface ISourceElementRequestorpublic void exitConstructor(int declarationEnd)
exitConstructor in interface ISourceElementRequestorISourceElementRequestor.exitConstructor(int)public void exitField(int initializationStart,
int declarationEnd,
int declarationSourceEnd)
exitField in interface ISourceElementRequestorpublic void exitInitializer(int declarationEnd)
exitInitializer in interface ISourceElementRequestorprotected void exitMember(int declarationEnd)
declarationEnd - - a source position corresponding to the end of the method
declaration. This can include whitespace and comments following the closing bracket.public void exitMethod(int declarationEnd,
Expression defaultValue)
exitMethod in interface ISourceElementRequestorpublic void exitType(int declarationEnd)
exitType in interface ISourceElementRequestordeclarationEnd - - a source position corresponding to the end of the class
declaration. This can include whitespace and comments following the closing bracket.AbstractDOMBuilder.exitType(int, int)protected SourceElementParser getParser(java.util.Map<java.lang.String,java.lang.String> settings)