Class DOMBuilder
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.DOMBuilder
- All Implemented Interfaces:
IDocumentElementRequestor
,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.
The DOMBuilder constructs each type of JDOM document fragment,
for the DOMFactory. The DOMBuilder has been separated from the
DOMFactory to hide the implmentation of node creation and the
public Requestor API methods.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Deprecated.True when parsing a single member - ignore any problems encountered after the member.protected ArrayList
Deprecated.Collection of multiple fields in one declarationprotected boolean
Deprecated.True when the single member being built has been exited.Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.jdom.AbstractDOMBuilder
fAbort, fBuildingCU, fBuildingType, fDocument, fFieldCount, fLineStartPositions, fNode, fStack
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptImport(int declarationStart, int declarationEnd, int[] javaDocPositions, char[] name, int nameStart, boolean onDemand, int modifiers)
Deprecated.void
acceptInitializer(int declarationStart, int declarationEnd, int[] javaDocPositions, int modifiers, int modifiersStart, int bodyStart, int bodyEnd)
Deprecated.void
acceptPackage(int declarationStart, int declarationEnd, int[] javaDocPositions, char[] name, int nameStartPosition)
Deprecated.void
acceptProblem(CategorizedProblem problem)
Deprecated.Sets the abort flag to true.protected void
Deprecated.Adds the given node to the current enclosing scope, building the JDOM tree.Deprecated.createCompilationUnit(ICompilationUnit compilationUnit)
Deprecated.createField(char[] sourceCode)
Deprecated.createFields(char[] sourceCode)
Deprecated.Deprecated.createImport(char[] sourceCode)
Deprecated.createInitializer(char[] sourceCode)
Deprecated.Creates an INITIALIZER document fragment from the given source.createMethod(char[] sourceCode)
Deprecated.Deprecated.createPackage(char[] sourceCode)
Deprecated.createType(char[] sourceCode)
Deprecated.protected void
enterAbstractMethod(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] returnType, int returnTypeStart, int returnTypeEnd, int returnTypeDimensionCount, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int[] parameterTypeStarts, int[] parameterTypeEnds, char[][] parameterNames, int[] parameterNameStarts, int[] parameterNameEnds, int parametersEnd, int extendedReturnTypeDimensionCount, int extendedReturnTypeDimensionEnd, char[][] exceptionTypes, int[] exceptionTypeStarts, int[] exceptionTypeEnds, int bodyStart, boolean isConstructor)
Deprecated.Creates a new DOMMethod and inizializes.void
enterClass(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int keywordStart, char[] name, int nameStart, int nameEnd, char[] superclass, int superclassStart, int superclassEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart)
Deprecated.void
enterConstructor(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int[] parameterTypeStarts, int[] parameterTypeEnds, char[][] parameterNames, int[] parameterNameStarts, int[] parameterNameEnds, int parametersEnd, char[][] exceptionTypes, int[] exceptionTypeStarts, int[] exceptionTypeEnds, int bodyStart)
Deprecated.void
enterField(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] type, int typeStart, int typeEnd, int typeDimensionCount, char[] name, int nameStart, int nameEnd, int extendedTypeDimensionCount, int extendedTypeDimensionEnd)
Deprecated.void
enterInterface(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int keywordStart, char[] name, int nameStart, int nameEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart)
Deprecated.void
enterMethod(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] returnType, int returnTypeStart, int returnTypeEnd, int returnTypeDimensionCount, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int[] parameterTypeStarts, int[] parameterTypeEnds, char[][] parameterNames, int[] parameterNameStarts, int[] parameterNameEnds, int parametersEnd, int extendedReturnTypeDimensionCount, int extendedReturnTypeDimensionEnd, char[][] exceptionTypes, int[] exceptionTypeStarts, int[] exceptionTypeEnds, int bodyStart)
Deprecated.protected void
enterType(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int keywordStart, char[] name, int nameStart, int nameEnd, char[] superclass, int superclassStart, int superclassEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart, boolean isClass)
Deprecated.protected void
exitAbstractMethod(int bodyEnd, int declarationEnd)
Deprecated.Finishes the configuration of the constructors and methods.void
exitClass(int bodyEnd, int declarationEnd)
Deprecated.Finishes the configuration of the class DOM object which was created by a previous enterClass call.void
exitConstructor(int bodyEnd, int declarationEnd)
Deprecated.Finishes the configuration of the method DOM object which was created by a previous enterConstructor call.void
exitField(int bodyEnd, int declarationEnd)
Deprecated.Finishes the configuration of the field DOM object which was created by a previous enterField call.void
exitInterface(int bodyEnd, int declarationEnd)
Deprecated.Finishes the configuration of the interface DOM object which was created by a previous enterInterface call.void
exitMethod(int bodyEnd, int declarationEnd)
Deprecated.Finishes the configuration of the method DOM object which was created by a previous enterMethod call.protected DocumentElementParser
Deprecated.Creates a new parser.protected void
initializeBuild(char[] sourceCode, boolean buildingCompilationUnit, boolean buildingType, boolean singleMember)
Deprecated.Initializes the builder to create a document fragment.Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.jdom.AbstractDOMBuilder
acceptLineSeparatorPositions, 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.IDocumentElementRequestor
acceptLineSeparatorPositions, enterCompilationUnit, exitCompilationUnit
-
Field Details
-
fBuildingSingleMember
protected boolean fBuildingSingleMemberDeprecated.True when parsing a single member - ignore any problems encountered after the member. -
fFinishedSingleMember
protected boolean fFinishedSingleMemberDeprecated.True when the single member being built has been exited. -
fFields
Deprecated.Collection of multiple fields in one declaration
-
-
Constructor Details
-
DOMBuilder
public DOMBuilder()Deprecated.Creates a new DOMBuilder
-
-
Method Details
-
acceptImport
public void acceptImport(int declarationStart, int declarationEnd, int[] javaDocPositions, char[] name, int nameStart, boolean onDemand, int modifiers)Deprecated.- Specified by:
acceptImport
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the start of the package declarationdeclarationEnd
- - a source position corresponding to the end of the package declarationjavaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsname
- - the name of the packagenameStart
- - a source position corresponding to the first character of the nameonDemand
- - a boolean equals to true if the import is an import on demand- See Also:
IDocumentElementRequestor.acceptImport(int, int, int[], char[], int, boolean, int)
-
acceptInitializer
public void acceptInitializer(int declarationStart, int declarationEnd, int[] javaDocPositions, int modifiers, int modifiersStart, int bodyStart, int bodyEnd)Deprecated.- Specified by:
acceptInitializer
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the start of the package declarationdeclarationEnd
- - a source position corresponding to the end of the package declarationjavaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsmodifiers
- - the modifiers for this initializermodifiersStart
- - a source position corresponding to the start of the textual modifiers, is < 0 if there are no textual modifiersbodyStart
- - the position of the '{'bodyEnd
- - the position of the '}'- See Also:
IDocumentElementRequestor.acceptInitializer(int declarationStart, int declarationEnd, int[] javaDocPositions, int modifiers, int modifiersStart, int bodyStart, int bodyEnd)
-
acceptPackage
public void acceptPackage(int declarationStart, int declarationEnd, int[] javaDocPositions, char[] name, int nameStartPosition)Deprecated.- Specified by:
acceptPackage
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the start of the package declarationdeclarationEnd
- - a source position corresponding to the end of the package declarationjavaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsname
- - the name of the packagenameStartPosition
- - a source position corresponding to the first character of the name- See Also:
IDocumentElementRequestor.acceptPackage(int declarationStart, int declarationEnd, int[] javaDocPositions, char[] name, int nameStartPosition)
-
acceptProblem
Deprecated.Sets the abort flag to true. The parser has encountered an error in the current document. If we are only building a single member, and we are done with the member - don't worry about the error.- Specified by:
acceptProblem
in interfaceIDocumentElementRequestor
- Parameters:
problem
- - Used to report a problem while running the JDOM- See Also:
IDocumentElementRequestor
-
addChild
Deprecated.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.
- Overrides:
addChild
in classAbstractDOMBuilder
-
createCompilationUnit
Deprecated.- See Also:
IDOMFactory.createCompilationUnit()
-
createCompilationUnit
Deprecated.- Overrides:
createCompilationUnit
in classAbstractDOMBuilder
- See Also:
IDOMFactory.createCompilationUnit(String, String)
-
createField
Deprecated.- See Also:
IDOMFactory.createField(String)
-
createFields
Deprecated. -
createImport
Deprecated.- See Also:
IDOMFactory.createImport()
-
createImport
Deprecated.- See Also:
IDOMFactory.createImport(String)
-
createInitializer
Deprecated.Creates an INITIALIZER document fragment from the given source.- See Also:
IDOMFactory.createInitializer(String)
-
createMethod
Deprecated.- See Also:
IDOMFactory.createMethod(String)
-
createPackage
Deprecated.- See Also:
IDOMFactory.createPackage()
-
createPackage
Deprecated.- See Also:
IDOMFactory.createPackage(String)
-
createType
Deprecated.- See Also:
IDOMFactory.createType(String)
-
enterAbstractMethod
protected void enterAbstractMethod(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] returnType, int returnTypeStart, int returnTypeEnd, int returnTypeDimensionCount, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int[] parameterTypeStarts, int[] parameterTypeEnds, char[][] parameterNames, int[] parameterNameStarts, int[] parameterNameEnds, int parametersEnd, int extendedReturnTypeDimensionCount, int extendedReturnTypeDimensionEnd, char[][] exceptionTypes, int[] exceptionTypeStarts, int[] exceptionTypeEnds, int bodyStart, boolean isConstructor)Deprecated.Creates a new DOMMethod and inizializes.- Parameters:
declarationStart
- - a source position corresponding to the first character of this constructor declarationmodifiers
- - the modifiers for this constructor converted to a flagmodifiersStart
- - a source position corresponding to the first character of the textual modifiersreturnType
- - the name of the return typereturnTypeStart
- - a source position corresponding to the first character of the return typereturnTypeEnd
- - a source position corresponding to the last character of the return typereturnTypeDimensionCount
- - the array dimension count as supplied on the return type (for instance, 'public int[] foo() {}')name
- - the name of this constructornameStart
- - a source position corresponding to the first character of the namenameEnd
- - a source position corresponding to the last character of the nameparameterTypes
- - a list of parameter type namesparameterTypeStarts
- - a list of source positions corresponding to the first character of each parameter type nameparameterTypeEnds
- - a list of source positions corresponding to the last character of each parameter type nameparameterNames
- - a list of the names of the parametersparametersEnd
- - a source position corresponding to the last character of the parameter listexceptionTypes
- - a list of the exception typesexceptionTypeStarts
- - a list of source positions corresponding to the first character of the respective exception typesexceptionTypeEnds
- - a list of source positions corresponding to the last character of the respective exception typesbodyStart
- - a source position corresponding to the start of this constructor's body
-
enterClass
public void enterClass(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int keywordStart, char[] name, int nameStart, int nameEnd, char[] superclass, int superclassStart, int superclassEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart)Deprecated.- Specified by:
enterClass
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the start of this class.javaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsmodifiers
- - the modifiers for this classmodifiersStart
- - a source position corresponding to the start of the textual modifiers, is < 0 if there are no textual modifierskeywordStart
- - a source position corresponding to the start of the keyword 'class'name
- - the name of the classnameStart
- - a source position corresponding to the start of the namenameEnd
- - a source position corresponding to the end of the namesuperclass
- - the name of the superclasssuperclassStart
- - a source position corresponding to the start of the superclass namesuperclassEnd
- - a source position corresponding to the end of the superclass namesuperinterfaces
- - the name of the superinterfacessuperinterfaceStarts
- - an array of source positions corresponding to the start of their respective superinterface namessuperinterfaceEnds
- - an array of source positions corresponding to the end of their respective superinterface namesbodyStart
- - a source position corresponding to the open bracket of the class body- See Also:
IDocumentElementRequestor.enterClass( int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int classStart, char[] name, int nameStart, int nameEnd, char[] superclass, int superclassStart, int superclassEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart)
-
enterConstructor
public void enterConstructor(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int[] parameterTypeStarts, int[] parameterTypeEnds, char[][] parameterNames, int[] parameterNameStarts, int[] parameterNameEnds, int parametersEnd, char[][] exceptionTypes, int[] exceptionTypeStarts, int[] exceptionTypeEnds, int bodyStart)Deprecated.- Specified by:
enterConstructor
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the first character of this constructor declarationjavaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsmodifiers
- - the modifiers for this constructor converted to a flagmodifiersStart
- - a source position corresponding to the first character of the textual modifiersname
- - the name of this constructornameStart
- - a source position corresponding to the first character of the namenameEnd
- - a source position corresponding to the last character of the nameparameterTypes
- - a list of parameter type namesparameterTypeStarts
- - a list of source positions corresponding to the first character of each parameter type nameparameterTypeEnds
- - a list of source positions corresponding to the last character of each parameter type nameparameterNames
- - a list of the names of the parametersparametersEnd
- - a source position corresponding to the last character of the parameter listexceptionTypes
- - a list of the exception typesexceptionTypeStarts
- - a list of source positions corresponding to the first character of the respective exception typesexceptionTypeEnds
- - a list of source positions corresponding to the last character of the respective exception typesbodyStart
- - a source position corresponding to the start of this constructor's body- See Also:
IDocumentElementRequestor.enterConstructor( int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int [] parameterTypeStarts, int [] parameterTypeEnds, char[][] parameterNames, int [] parameterNameStarts, int [] parameterNameEnds, int parametersEnd, char[][] exceptionTypes, int [] exceptionTypeStarts, int [] exceptionTypeEnds, int bodyStart)
-
enterField
public void enterField(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] type, int typeStart, int typeEnd, int typeDimensionCount, char[] name, int nameStart, int nameEnd, int extendedTypeDimensionCount, int extendedTypeDimensionEnd)Deprecated.- Specified by:
enterField
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the first character of this fieldjavaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsmodifiers
- - the modifiers for this field converted to a flagmodifiersStart
- - a source position corresponding to the first character of the textual modifierstype
- - the name of the field typetypeStart
- - a source position corresponding to the start of the fields typetypeEnd
- - a source position corresponding to the end of the fields typetypeDimensionCount
- - the array dimension indicated on the type (for example, 'int[] v')name
- - the name of this constructornameStart
- - a source position corresponding to the first character of the namenameEnd
- - a source position corresponding to the last character of the nameextendedTypeDimensionCount
- - the array dimension indicated on the variable, (for example, 'int v[]')extendedTypeDimensionEnd
- - a source position corresponding to the end of the extened type dimension. This position should be -1 in case there is no extended dimension for the type.- See Also:
IDocumentElementRequestor.enterField( int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] type, int typeStart, int typeEnd, int typeDimensionCount, char[] name, int nameStart, int nameEnd, int extendedTypeDimensionCount, int extendedTypeDimensionEnd)
-
enterInterface
public void enterInterface(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int keywordStart, char[] name, int nameStart, int nameEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart)Deprecated.- Specified by:
enterInterface
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the start of this class.javaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsmodifiers
- - the modifiers for this classmodifiersStart
- - a source position corresponding to the start of the textual modifiers, is < 0 if there are no textual modifierskeywordStart
- - a source position corresponding to the start of the keyword 'interface'name
- - the name of the classnameStart
- - a source position corresponding to the start of the namenameEnd
- - a source position corresponding to the end of the namesuperinterfaces
- - the name of the superinterfacessuperinterfaceStarts
- - an array of source positions corresponding to the start of their respective superinterface namessuperinterfaceEnds
- - an array of source positions corresponding to the end of their respective superinterface namesbodyStart
- - a source position corresponding to the open bracket of the class body- See Also:
IDocumentElementRequestor.enterInterface( int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int interfaceStart, char[] name, int nameStart, int nameEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart)
-
enterMethod
public void enterMethod(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] returnType, int returnTypeStart, int returnTypeEnd, int returnTypeDimensionCount, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int[] parameterTypeStarts, int[] parameterTypeEnds, char[][] parameterNames, int[] parameterNameStarts, int[] parameterNameEnds, int parametersEnd, int extendedReturnTypeDimensionCount, int extendedReturnTypeDimensionEnd, char[][] exceptionTypes, int[] exceptionTypeStarts, int[] exceptionTypeEnds, int bodyStart)Deprecated.- Specified by:
enterMethod
in interfaceIDocumentElementRequestor
- Parameters:
declarationStart
- - a source position corresponding to the first character of this constructor declarationjavaDocPositions
- - answer back an array of sourceStart/sourceEnd positions of the available JavaDoc comments. The array is a flattened structure: 2*n entries with consecutives start and end positions. If no JavaDoc is available, then null is answered instead of an empty array. e.g. { 10, 20, 25, 45 } --> javadoc1 from 10 to 20, javadoc2 from 25 to 45 The array is equals to null if there are no javadoc commentsmodifiers
- - the modifiers for this constructor converted to a flagmodifiersStart
- - a source position corresponding to the first character of the textual modifiersreturnType
- - the name of the return typereturnTypeStart
- - a source position corresponding to the first character of the return typereturnTypeEnd
- - a source position corresponding to the last character of the return typereturnTypeDimensionCount
- - the array dimension count as supplied on the return type (for example, 'public int[] foo() {}')name
- - the name of this constructornameStart
- - a source position corresponding to the first character of the namenameEnd
- - a source position corresponding to the last character of the nameparameterTypes
- - a list of parameter type namesparameterTypeStarts
- - a list of source positions corresponding to the first character of each parameter type nameparameterTypeEnds
- - a list of source positions corresponding to the last character of each parameter type nameparameterNames
- - a list of the names of the parametersparametersEnd
- - a source position corresponding to the last character of the parameter listextendedReturnTypeDimensionCount
- - the array dimension count as supplied on the end of the parameter list (for example, 'public int foo()[] {}')extendedReturnTypeDimensionEnd
- - a source position corresponding to the last character of the extended return type dimension. This position should be -1 in case there is no extended dimension for the type.exceptionTypes
- - a list of the exception typesexceptionTypeStarts
- - a list of source positions corresponding to the first character of the respective exception typesexceptionTypeEnds
- - a list of source positions corresponding to the last character of the respective exception typesbodyStart
- - a source position corresponding to the start of this method's body- See Also:
IDocumentElementRequestor.enterMethod( int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, char[] returnType, int returnTypeStart, int returnTypeEnd, int returnTypeDimensionCount, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, int [] parameterTypeStarts, int [] parameterTypeEnds, char[][] parameterNames, int [] parameterNameStarts, int [] parameterNameEnds, int parametersEnd, int extendedReturnTypeDimensionCount, int extendedReturnTypeDimensionEnd, char[][] exceptionTypes, int [] exceptionTypeStarts, int [] exceptionTypeEnds, int bodyStart)
-
enterType
protected void enterType(int declarationStart, int[] javaDocPositions, int modifiers, int modifiersStart, int keywordStart, char[] name, int nameStart, int nameEnd, char[] superclass, int superclassStart, int superclassEnd, char[][] superinterfaces, int[] superinterfaceStarts, int[] superinterfaceEnds, int bodyStart, boolean isClass)Deprecated. -
exitAbstractMethod
protected void exitAbstractMethod(int bodyEnd, int declarationEnd)Deprecated.Finishes the configuration of the constructors and methods.- Parameters:
bodyEnd
- - a source position corresponding to the closing bracket of the methoddeclarationEnd
- - a source position corresponding to the end of the method declaration. This can include whitespace and comments following the closing bracket.
-
exitClass
public void exitClass(int bodyEnd, int declarationEnd)Deprecated.Finishes the configuration of the class DOM object which was created by a previous enterClass call.- Specified by:
exitClass
in interfaceIDocumentElementRequestor
- Parameters:
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.- See Also:
IDocumentElementRequestor.exitClass(int, int)
-
exitConstructor
public void exitConstructor(int bodyEnd, int declarationEnd)Deprecated.Finishes the configuration of the method DOM object which was created by a previous enterConstructor call.- Specified by:
exitConstructor
in interfaceIDocumentElementRequestor
- Parameters:
bodyEnd
- - a source position corresponding to the closing bracket of the methoddeclarationEnd
- - a source position corresponding to the end of the method declaration. This can include whitespace and comments following the closing bracket.- See Also:
IDocumentElementRequestor.exitConstructor(int, int)
-
exitField
public void exitField(int bodyEnd, int declarationEnd)Deprecated.Finishes the configuration of the field DOM object which was created by a previous enterField call.- Specified by:
exitField
in interfaceIDocumentElementRequestor
- Parameters:
bodyEnd
- - a source position corresponding to the end of the field.declarationEnd
- - a source position corresponding to the end of the field. This can include whitespace and comments following the semi-colon.- See Also:
IDocumentElementRequestor.exitField(int, int)
-
exitInterface
public void exitInterface(int bodyEnd, int declarationEnd)Deprecated.Finishes the configuration of the interface DOM object which was created by a previous enterInterface call.- Specified by:
exitInterface
in interfaceIDocumentElementRequestor
- Parameters:
bodyEnd
- - a source position corresponding to the closing bracket of the interfacedeclarationEnd
- - a source position corresponding to the end of the interface declaration. This can include whitespace and comments following the closing bracket.- See Also:
IDocumentElementRequestor.exitInterface(int, int)
-
exitMethod
public void exitMethod(int bodyEnd, int declarationEnd)Deprecated.Finishes the configuration of the method DOM object which was created by a previous enterMethod call.- Specified by:
exitMethod
in interfaceIDocumentElementRequestor
- Parameters:
bodyEnd
- - a source position corresponding to the closing bracket of the methoddeclarationEnd
- - a source position corresponding to the end of the method declaration. This can include whitespace and comments following the closing bracket.- See Also:
IDocumentElementRequestor.exitMethod(int, int)
-
getParser
Deprecated.Creates a new parser. -
initializeBuild
protected void initializeBuild(char[] sourceCode, boolean buildingCompilationUnit, boolean buildingType, boolean singleMember)Deprecated.Initializes the builder to create a document fragment.- Parameters:
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 unitsingleMember
- - true if building a single member
-