Klasse AbstractDOMBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
org.aspectj.org.eclipse.jdt.internal.core.jdom.AbstractDOMBuilder
- Alle implementierten Schnittstellen:
ILineStartFinder
- Bekannte direkte Unterklassen:
DOMBuilder,SimpleDOMBuilder
Veraltet.
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.
An abstract DOM builder that contains shared functionality of DOMBuilder and SimpleDOMBuilder.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected booleanVeraltet.Set to true when an error is encounterd while fuzzy parsingprotected booleanVeraltet.True when a compilation unit is being constructed.protected booleanVeraltet.True when a compilation unit or type is being constructed.protected char[]Veraltet.The String on which the JDOM is being created.protected intVeraltet.The number of fields constructed in the current document.protected int[]Veraltet.The source positions of all of the line separators in the document.protected DOMNodeVeraltet.The current node being constructed.protected StackVeraltet.A stack of enclosing scopes used when constructing a compilation unit or type. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidacceptLineSeparatorPositions(int[] positions) Veraltet.Accepts the line separator table and converts it into a line start table.protected voidVeraltet.Adds the given node to the current enclosing scope, building the JDOM tree.createCompilationUnit(char[] contents, char[] name) Veraltet.createCompilationUnit(ICompilationUnit compilationUnit) Veraltet.voidVeraltet.voidexitCompilationUnit(int declarationEnd) Veraltet.Finishes the configuration of the compilation unit DOM object which was created by a previous enterCompilationUnit call.protected voidexitType(int bodyEnd, int declarationEnd) Veraltet.Finishes the configuration of the class and interface DOM objects.intgetLineStart(int position) Veraltet.Returns the position of the start of the line at or before the given source position.protected voidinitializeBuild(char[] sourceCode, boolean buildingCompilationUnit, boolean buildingType) Veraltet.Initializes the builder to create a document fragment.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.util.ReferenceInfoAdapter
acceptAnnotationTypeReference, acceptAnnotationTypeReference, acceptConstructorReference, acceptFieldReference, acceptMethodReference, acceptTypeReference, acceptTypeReference, acceptUnknownReference, acceptUnknownReference
-
Felddetails
-
fAbort
protected boolean fAbortVeraltet.Set to true when an error is encounterd while fuzzy parsing -
fBuildingCU
protected boolean fBuildingCUVeraltet.True when a compilation unit is being constructed. False when any other type of document fragment is being constructed. -
fBuildingType
protected boolean fBuildingTypeVeraltet.True when a compilation unit or type is being constructed. False when any other type of document fragment is being constructed. -
fDocument
protected char[] fDocumentVeraltet.The String on which the JDOM is being created. -
fLineStartPositions
protected int[] fLineStartPositionsVeraltet.The source positions of all of the line separators in the document. -
fStack
Veraltet.A stack of enclosing scopes used when constructing a compilation unit or type. The top of the stack is the document fragment that children are added to. -
fFieldCount
protected int fFieldCountVeraltet.The number of fields constructed in the current document. This is used when building a single field document fragment, since the DOMBuilder only accepts documents with one field declaration. -
fNode
Veraltet.The current node being constructed.
-
-
Konstruktordetails
-
AbstractDOMBuilder
public AbstractDOMBuilder()Veraltet.AbstractDOMBuilder constructor.
-
-
Methodendetails
-
acceptLineSeparatorPositions
public void acceptLineSeparatorPositions(int[] positions) Veraltet.Accepts the line separator table and converts it into a line start table.A line separator might corresponds to several characters in the source.
- Siehe auch:
-
addChild
Veraltet.Adds the given node to the current enclosing scope, building the JDOM tree. Nodes are only added to an enclosing scope when a compilation unit or type is being built (since those are the only nodes that have children).NOTE: nodes are added to the JDOM via the method #basicAddChild such that the nodes in the newly created JDOM are not fragmented.
-
createCompilationUnit
Veraltet.- Siehe auch:
-
createCompilationUnit
Veraltet.- Siehe auch:
-
enterCompilationUnit
public void enterCompilationUnit()Veraltet.- Siehe auch:
-
exitCompilationUnit
public void exitCompilationUnit(int declarationEnd) Veraltet.Finishes the configuration of the compilation unit DOM object which was created by a previous enterCompilationUnit call.- Siehe auch:
-
exitType
protected void exitType(int bodyEnd, int declarationEnd) Veraltet.Finishes the configuration of the class and interface DOM objects.- Parameter:
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.
-
getLineStart
public int getLineStart(int position) Veraltet.Beschreibung aus Schnittstelle kopiert:ILineStartFinderReturns the position of the start of the line at or before the given source position.This defaults to zero if the position corresponds to a position on the first line of the source.
- Angegeben von:
getLineStartin SchnittstelleILineStartFinder- Siehe auch:
-
initializeBuild
protected void initializeBuild(char[] sourceCode, boolean buildingCompilationUnit, boolean buildingType) Veraltet.Initializes the builder to create a document fragment.- Parameter:
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
-