org.aspectj.org.eclipse.jdt.internal.core.jdom
Class SimpleDOMBuilder

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
      extended by org.aspectj.org.eclipse.jdt.internal.core.jdom.AbstractDOMBuilder
          extended by 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.aspectj.org.eclipse.jdt.core.dom package.

public class SimpleDOMBuilder
extends AbstractDOMBuilder
implements ISourceElementRequestor

A DOM builder that uses the SourceElementParser


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.ISourceElementRequestor
ISourceElementRequestor.FieldInfo, ISourceElementRequestor.MethodInfo, ISourceElementRequestor.ParameterInfo, ISourceElementRequestor.TypeInfo, ISourceElementRequestor.TypeParameterInfo
 
Field Summary
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.jdom.AbstractDOMBuilder
fAbort, fBuildingCU, fBuildingType, fDocument, fFieldCount, fLineStartPositions, fNode, fStack
 
Constructor Summary
SimpleDOMBuilder()
          Deprecated.  
 
Method Summary
 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 settings)
          Deprecated. Creates a new parser.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.jdom.AbstractDOMBuilder
acceptLineSeparatorPositions, addChild, createCompilationUnit, enterCompilationUnit, exitCompilationUnit, exitType, getLineStart, initializeBuild
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.ISourceElementRequestor
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptLineSeparatorPositions, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference, enterCompilationUnit, exitCompilationUnit
 

Constructor Detail

SimpleDOMBuilder

public SimpleDOMBuilder()
Deprecated. 
Method Detail

acceptProblem

public void acceptProblem(CategorizedProblem problem)
Deprecated. 
Does nothing.

Specified by:
acceptProblem in interface ISourceElementRequestor

acceptImport

public void acceptImport(int declarationStart,
                         int declarationEnd,
                         int nameStart,
                         int nameEnd,
                         char[][] tokens,
                         boolean onDemand,
                         int modifiers)
Deprecated. 
Specified by:
acceptImport in interface ISourceElementRequestor
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

public void acceptPackage(ImportReference importReference)
Deprecated. 
Specified by:
acceptPackage in interface ISourceElementRequestor

createCompilationUnit

public IDOMCompilationUnit createCompilationUnit(java.lang.String sourceCode,
                                                 java.lang.String name)
Deprecated. 
See Also:
IDOMFactory.createCompilationUnit(String, String)

createCompilationUnit

public IDOMCompilationUnit createCompilationUnit(ICompilationUnit compilationUnit)
Deprecated. 
Overrides:
createCompilationUnit in class AbstractDOMBuilder
See Also:
IDOMFactory.createCompilationUnit(String, String)

enterAbstractMethod

protected void enterAbstractMethod(ISourceElementRequestor.MethodInfo methodInfo)
Deprecated. 
Creates a new DOMMethod and inizializes.


enterConstructor

public void enterConstructor(ISourceElementRequestor.MethodInfo methodInfo)
Deprecated. 
Specified by:
enterConstructor in interface ISourceElementRequestor

enterField

public void enterField(ISourceElementRequestor.FieldInfo fieldInfo)
Deprecated. 
Specified by:
enterField in interface ISourceElementRequestor

enterInitializer

public void enterInitializer(int declarationSourceStart,
                             int modifiers)
Deprecated. 
Specified by:
enterInitializer in interface ISourceElementRequestor

enterMethod

public void enterMethod(ISourceElementRequestor.MethodInfo methodInfo)
Deprecated. 
Specified by:
enterMethod in interface ISourceElementRequestor

enterType

public void enterType(ISourceElementRequestor.TypeInfo typeInfo)
Deprecated. 
Specified by:
enterType in interface ISourceElementRequestor

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:
exitConstructor in interface ISourceElementRequestor
See Also:
ISourceElementRequestor.exitConstructor(int)

exitField

public void exitField(int initializationStart,
                      int declarationEnd,
                      int declarationSourceEnd)
Deprecated. 
Specified by:
exitField in interface ISourceElementRequestor

exitInitializer

public void exitInitializer(int declarationEnd)
Deprecated. 
Specified by:
exitInitializer in interface ISourceElementRequestor

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

public void exitMethod(int declarationEnd,
                       Expression defaultValue)
Deprecated. 
Specified by:
exitMethod in interface ISourceElementRequestor

exitType

public void exitType(int declarationEnd)
Deprecated. 
Specified by:
exitType in interface ISourceElementRequestor
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:
AbstractDOMBuilder.exitType(int, int)

getParser

protected SourceElementParser getParser(java.util.Map settings)
Deprecated. 
Creates a new parser.