public class AbstractDOMBuilder extends ReferenceInfoAdapter implements ILineStartFinder
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fAbort
Deprecated.
Set to true when an error is encounterd while
fuzzy parsing
|
protected boolean |
fBuildingCU
Deprecated.
True when a compilation unit is being constructed.
|
protected boolean |
fBuildingType
Deprecated.
True when a compilation unit or type is being
constructed.
|
protected char[] |
fDocument
Deprecated.
The String on which the JDOM is being created.
|
protected int |
fFieldCount
Deprecated.
The number of fields constructed in the current
document.
|
protected int[] |
fLineStartPositions
Deprecated.
The source positions of all of the line separators in the document.
|
protected DOMNode |
fNode
Deprecated.
The current node being constructed.
|
protected java.util.Stack |
fStack
Deprecated.
A stack of enclosing scopes used when constructing
a compilation unit or type.
|
| Constructor and Description |
|---|
AbstractDOMBuilder()
Deprecated.
AbstractDOMBuilder constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptLineSeparatorPositions(int[] positions)
Deprecated.
Accepts the line separator table and converts it into a line start table.
|
protected void |
addChild(IDOMNode child)
Deprecated.
Adds the given node to the current enclosing scope, building the JDOM
tree.
|
IDOMCompilationUnit |
createCompilationUnit(char[] contents,
char[] name)
Deprecated.
|
IDOMCompilationUnit |
createCompilationUnit(ICompilationUnit compilationUnit)
Deprecated.
|
void |
enterCompilationUnit()
Deprecated.
|
void |
exitCompilationUnit(int declarationEnd)
Deprecated.
Finishes the configuration of the compilation unit DOM object which
was created by a previous enterCompilationUnit call.
|
protected void |
exitType(int bodyEnd,
int declarationEnd)
Deprecated.
Finishes the configuration of the class and interface DOM objects.
|
int |
getLineStart(int position)
Deprecated.
Returns the position of the start of the line at or before the given source position.
|
protected void |
initializeBuild(char[] sourceCode,
boolean buildingCompilationUnit,
boolean buildingType)
Deprecated.
Initializes the builder to create a document fragment.
|
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReferenceprotected boolean fAbort
protected boolean fBuildingCU
protected boolean fBuildingType
protected char[] fDocument
protected int[] fLineStartPositions
protected java.util.Stack fStack
protected int fFieldCount
protected DOMNode fNode
public AbstractDOMBuilder()
public void acceptLineSeparatorPositions(int[] positions)
A line separator might corresponds to several characters in the source.
protected void addChild(IDOMNode child)
NOTE: nodes are added to the JDOM via the method #basicAddChild such that the nodes in the newly created JDOM are not fragmented.
public IDOMCompilationUnit createCompilationUnit(char[] contents, char[] name)
public IDOMCompilationUnit createCompilationUnit(ICompilationUnit compilationUnit)
public void enterCompilationUnit()
public void exitCompilationUnit(int declarationEnd)
protected void exitType(int bodyEnd,
int declarationEnd)
bodyEnd - - a source position corresponding to the closing bracket of the classdeclarationEnd - - a source position corresponding to the end of the class
declaration. This can include whitespace and comments following the closing bracket.public int getLineStart(int position)
ILineStartFinderThis defaults to zero if the position corresponds to a position on the first line of the source.
getLineStart in interface ILineStartFinderILineStartFinder.getLineStart(int)protected void initializeBuild(char[] sourceCode,
boolean buildingCompilationUnit,
boolean buildingType)
sourceCode - - the document containing the source code to be analyzedbuildingCompilationUnit - - true if a the document is being analyzed to
create a compilation unit, otherwise falsebuildingType - - true if the document is being analyzed to create a
type or compilation unit