Class SimpleDOMBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
org.aspectj.org.eclipse.jdt.internal.core.jdom.AbstractDOMBuilder
org.aspectj.org.eclipse.jdt.internal.core.jdom.SimpleDOMBuilder
- All Implemented Interfaces:
ISourceElementRequestor, ILineStartFinder
Deprecated.
The JDOM was made obsolete by the addition in 2.0 of the more
powerful, fine-grained DOM/AST API found in the
org.eclipse.jdt.core.dom package.
A DOM builder that uses the SourceElementParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface ISourceElementRequestor
ISourceElementRequestor.FieldInfo, ISourceElementRequestor.MethodInfo, ISourceElementRequestor.ModuleInfo, ISourceElementRequestor.PackageExportInfo, ISourceElementRequestor.ParameterInfo, ISourceElementRequestor.RequiresInfo, ISourceElementRequestor.ServicesInfo, ISourceElementRequestor.TypeInfo, ISourceElementRequestor.TypeParameterInfoModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields inherited from class AbstractDOMBuilder
fAbort, fBuildingCU, fBuildingType, fDocument, fFieldCount, fLineStartPositions, fNode, fStackModifier and TypeFieldDescriptionprotected booleanDeprecated.Set to true when an error is encounterd while fuzzy parsingprotected booleanDeprecated.True when a compilation unit is being constructed.protected booleanDeprecated.True when a compilation unit or type is being constructed.protected char[]Deprecated.The String on which the JDOM is being created.protected intDeprecated.The number of fields constructed in the current document.protected int[]Deprecated.The source positions of all of the line separators in the document.protected DOMNodeDeprecated.The current node being constructed.protected StackDeprecated.A stack of enclosing scopes used when constructing a compilation unit or type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptImport(int declarationStart, int declarationEnd, int nameStart, int nameEnd, char[][] tokens, boolean onDemand, int modifiers) Deprecated.voidacceptPackage(ImportReference importReference) Deprecated.voidacceptProblem(CategorizedProblem problem) Deprecated.Does nothing.createCompilationUnit(String sourceCode, String name) Deprecated.createCompilationUnit(ICompilationUnit compilationUnit) Deprecated.protected voidDeprecated.Creates a new DOMMethod and inizializes.voidenterConstructor(ISourceElementRequestor.MethodInfo methodInfo) Deprecated.voidenterField(ISourceElementRequestor.FieldInfo fieldInfo) Deprecated.voidenterInitializer(int declarationSourceStart, int modifiers) Deprecated.voidenterMethod(ISourceElementRequestor.MethodInfo methodInfo) Deprecated.voidenterType(ISourceElementRequestor.TypeInfo typeInfo) Deprecated.voidexitConstructor(int declarationEnd) Deprecated.Finishes the configuration of the method DOM object which was created by a previous enterConstructor call.voidexitField(int initializationStart, int declarationEnd, int declarationSourceEnd) Deprecated.voidexitInitializer(int declarationEnd) Deprecated.protected voidexitMember(int declarationEnd) Deprecated.Finishes the configuration of the member.voidexitMethod(int declarationEnd, Expression defaultValue) Deprecated.voidexitType(int declarationEnd) Deprecated.protected SourceElementParserDeprecated.Creates a new parser.Methods inherited from class AbstractDOMBuilder
acceptLineSeparatorPositions, addChild, createCompilationUnit, enterCompilationUnit, exitCompilationUnit, exitType, getLineStart, initializeBuildModifier and TypeMethodDescriptionvoidacceptLineSeparatorPositions(int[] positions) Deprecated.Accepts the line separator table and converts it into a line start table.protected voidDeprecated.Adds the given node to the current enclosing scope, building the JDOM tree.createCompilationUnit(char[] contents, char[] name) Deprecated.voidDeprecated.voidexitCompilationUnit(int declarationEnd) Deprecated.Finishes the configuration of the compilation unit DOM object which was created by a previous enterCompilationUnit call.protected voidexitType(int bodyEnd, int declarationEnd) Deprecated.Finishes the configuration of the class and interface DOM objects.intgetLineStart(int position) Deprecated.Returns the position of the start of the line at or before the given source position.protected voidinitializeBuild(char[] sourceCode, boolean buildingCompilationUnit, boolean buildingType) Deprecated.Initializes the builder to create a document fragment.Methods inherited from class ReferenceInfoAdapter
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReferenceModifier and TypeMethodDescriptionvoidacceptAnnotationTypeReference(char[][] typeName, int sourceStart, int sourceEnd) Does nothing.voidacceptAnnotationTypeReference(char[] typeName, int sourcePosition) Does nothing.voidacceptConstructorReference(char[] typeName, int argCount, int sourcePosition) Does nothing.voidacceptFieldReference(char[] fieldName, int sourcePosition) Does nothing.voidacceptMethodReference(char[] methodName, int argCount, int sourcePosition) Does nothing.voidacceptTypeReference(char[][] typeName, int sourceStart, int sourceEnd) Does nothing.voidacceptTypeReference(char[] typeName, int sourcePosition) Does nothing.voidacceptUnknownReference(char[][] name, int sourceStart, int sourceEnd) Does nothing.voidacceptUnknownReference(char[] name, int sourcePosition) Does nothing.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISourceElementRequestor
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptLineSeparatorPositions, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference, enterBlock, enterCompilationUnit, enterModule, exitBlock, exitCompilationUnit, exitModuleModifier and TypeMethodDescriptionvoidacceptAnnotationTypeReference(char[][] annotation, int sourceStart, int sourceEnd) voidacceptAnnotationTypeReference(char[] annotation, int sourcePosition) voidacceptConstructorReference(char[] typeName, int argCount, int sourcePosition) voidacceptFieldReference(char[] fieldName, int sourcePosition) voidacceptLineSeparatorPositions(int[] positions) voidacceptMethodReference(char[] methodName, int argCount, int sourcePosition) voidacceptTypeReference(char[][] typeName, int sourceStart, int sourceEnd) voidacceptTypeReference(char[] typeName, int sourcePosition) voidacceptUnknownReference(char[][] name, int sourceStart, int sourceEnd) voidacceptUnknownReference(char[] name, int sourcePosition) default voidenterBlock(int sourceStart) voiddefault voiddefault voidexitBlock(int sourceEnd) voidexitCompilationUnit(int declarationEnd) default voidexitModule(int declarationEnd)
-
Constructor Details
-
SimpleDOMBuilder
public SimpleDOMBuilder()Deprecated.
-
-
Method Details
-
acceptProblem
-
acceptImport
public void acceptImport(int declarationStart, int declarationEnd, int nameStart, int nameEnd, char[][] tokens, boolean onDemand, int modifiers) Deprecated.- Specified by:
acceptImportin interfaceISourceElementRequestor- Parameters:
declarationStart- 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.
-
acceptPackage
Deprecated.- Specified by:
acceptPackagein interfaceISourceElementRequestor
-
createCompilationUnit
Deprecated.- See Also:
-
createCompilationUnit
Deprecated.- Overrides:
createCompilationUnitin classAbstractDOMBuilder- See Also:
-
enterAbstractMethod
Deprecated.Creates a new DOMMethod and inizializes. -
enterConstructor
Deprecated.- Specified by:
enterConstructorin interfaceISourceElementRequestor
-
enterField
Deprecated.- Specified by:
enterFieldin interfaceISourceElementRequestor
-
enterInitializer
public void enterInitializer(int declarationSourceStart, int modifiers) Deprecated.- Specified by:
enterInitializerin interfaceISourceElementRequestor
-
enterMethod
Deprecated.- Specified by:
enterMethodin interfaceISourceElementRequestor
-
enterType
Deprecated.- Specified by:
enterTypein interfaceISourceElementRequestor
-
exitConstructor
public void exitConstructor(int declarationEnd) Deprecated.Finishes the configuration of the method DOM object which was created by a previous enterConstructor call.- Specified by:
exitConstructorin interfaceISourceElementRequestor- See Also:
-
exitField
public void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd) Deprecated.- Specified by:
exitFieldin interfaceISourceElementRequestor
-
exitInitializer
public void exitInitializer(int declarationEnd) Deprecated.- Specified by:
exitInitializerin interfaceISourceElementRequestor
-
exitMember
protected void exitMember(int declarationEnd) Deprecated.Finishes the configuration of the member.- Parameters:
declarationEnd- - a source position corresponding to the end of the method declaration. This can include whitespace and comments following the closing bracket.
-
exitMethod
Deprecated.- Specified by:
exitMethodin interfaceISourceElementRequestor
-
exitType
public void exitType(int declarationEnd) Deprecated.- Specified by:
exitTypein interfaceISourceElementRequestor- Parameters:
declarationEnd- - a source position corresponding to the end of the class declaration. This can include whitespace and comments following the closing bracket.- See Also:
-
getParser
Deprecated.Creates a new parser.
-