Klasse AbstractCommentParser
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser
- Alle implementierten Schnittstellen:
JavadocTagConstants
- Bekannte direkte Unterklassen:
JavadocParser
Parser specialized for decoding javadoc comments
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected booleanprotected static final intprotected static final intprotected static final intprotected intprotected int[]protected intprotected Object[]booleanstatic final intstatic final intprotected longprotected booleanstatic final intprotected static final intprotected intstatic final intprotected intprotected int[]protected long[]protected intprotected char[][]protected intprotected long[]protected intprotected intprotected booleanprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected int[]protected booleanprotected intprotected static final intprotected intprotected TypeReference[]protected static final intbooleanprotected Objectstatic final intbooleanprotected booleanchar[]static final intprotected longprotected Parserprotected intprotected intprotected intprotected intprotected static final intprotected static final intprotected intprotected intprotected intprotected TypeReference[]Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.parser.JavadocTagConstants
ALL_TAGS_LENGTH, BLOCK_IDX, BLOCK_TAGS, BLOCK_TAGS_LENGTH, CLASS_TAGS, COMPILATION_UNIT_TAGS, FIELD_TAGS, HREF_TAG, IN_SNIPPET_TAGS, IN_SNIPPET_TAGS_LENGTH, INLINE_IDX, INLINE_TAGS, INLINE_TAGS_LENGTH, JAVADOC_TAG_TYPE, METHOD_TAGS, MODULE_TAGS, NO_TAG_VALUE, ORDERED_TAGS_NUMBER, PACKAGE_TAGS, PARAM_TAG_EXPECTED_ORDER, SEE_TAG_EXPECTED_ORDER, SNIPPET_IDX, SNIPPET_TAGS_LENGTH, TAG_API_NOTE, TAG_API_NOTE_LENGTH, TAG_API_NOTE_VALUE, TAG_AUTHOR, TAG_AUTHOR_LENGTH, TAG_AUTHOR_VALUE, TAG_CATEGORY, TAG_CATEGORY_LENGTH, TAG_CATEGORY_VALUE, TAG_CODE, TAG_CODE_LENGTH, TAG_CODE_VALUE, TAG_DEPRECATED, TAG_DEPRECATED_LENGTH, TAG_DEPRECATED_VALUE, TAG_DOC_ROOT, TAG_DOC_ROOT_LENGTH, TAG_DOC_ROOT_VALUE, TAG_EXCEPTION, TAG_EXCEPTION_LENGTH, TAG_EXCEPTION_VALUE, TAG_HIDDEN, TAG_HIDDEN_LENGTH, TAG_HIDDEN_VALUE, TAG_HIGHLIGHT, TAG_HIGHLIGHT_LENGTH, TAG_HIGHLIGHT_VALUE, TAG_IMPL_NOTE, TAG_IMPL_NOTE_LENGTH, TAG_IMPL_NOTE_VALUE, TAG_IMPL_SPEC, TAG_IMPL_SPEC_LENGTH, TAG_IMPL_SPEC_VALUE, TAG_INDEX, TAG_INDEX_LENGTH, TAG_INDEX_VALUE, TAG_INHERITDOC, TAG_INHERITDOC_LENGTH, TAG_INHERITDOC_VALUE, TAG_LINK, TAG_LINK_LENGTH, TAG_LINK_VALUE, TAG_LINKPLAIN, TAG_LINKPLAIN_LENGTH, TAG_LINKPLAIN_VALUE, TAG_LITERAL, TAG_LITERAL_LENGTH, TAG_LITERAL_VALUE, TAG_NAMES, TAG_OTHERS_VALUE, TAG_PARAM, TAG_PARAM_LENGTH, TAG_PARAM_VALUE, TAG_PROVIDES, TAG_PROVIDES_LENGTH, TAG_PROVIDES_VALUE, TAG_REPLACE, TAG_REPLACE_LENGTH, TAG_REPLACE_VALUE, TAG_RETURN, TAG_RETURN_LENGTH, TAG_RETURN_VALUE, TAG_SEE, TAG_SEE_LENGTH, TAG_SEE_VALUE, TAG_SERIAL, TAG_SERIAL_DATA, TAG_SERIAL_DATA_LENGTH, TAG_SERIAL_DATA_VALUE, TAG_SERIAL_FIELD, TAG_SERIAL_FIELD_LENGTH, TAG_SERIAL_FIELD_VALUE, TAG_SERIAL_LENGTH, TAG_SERIAL_VALUE, TAG_SINCE, TAG_SINCE_LENGTH, TAG_SINCE_VALUE, TAG_SNIPPET, TAG_SNIPPET_LENGTH, TAG_SNIPPET_VALUE, TAG_SUMMARY, TAG_SUMMARY_LENGTH, TAG_SUMMARY_VALUE, TAG_SYSTEM_PROPERTY, TAG_SYSTEM_PROPERTY_LENGTH, TAG_SYSTEM_PROPERTY_VALUE, TAG_THROWS, TAG_THROWS_LENGTH, TAG_THROWS_VALUE, TAG_TYPE_BLOCK, TAG_TYPE_IN_SNIPPET, TAG_TYPE_INLINE, TAG_TYPE_NONE, TAG_USES, TAG_USES_LENGTH, TAG_USES_VALUE, TAG_VALUE, TAG_VALUE_LENGTH, TAG_VALUE_VALUE, TAG_VERSION, TAG_VERSION_LENGTH, TAG_VERSION_VALUE, THROWS_TAG_EXPECTED_ORDER -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract voidaddSnippetInnerTag(Object tag, Object snippetTag) protected abstract voidaddTagProperties(Object Tag, Map<String, Object> map, int tagCount) protected abstract booleanprotected abstract voidcloseJavaDocRegion(String name, Object snippetTag, int end) protected booleanprotected voidprotected abstract ObjectcreateArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPos, long argNamePos) protected booleancreateFakeReference(int start) protected abstract ObjectcreateFieldReference(Object receiver) protected abstract ObjectcreateMethodReference(Object receiver, List arguments) protected abstract ObjectcreateModuleTypeReference(int primitiveToken, int moduleRefTokenCount) protected Objectprotected abstract ObjectcreateSnippetInnerTag(String tagName, int start, int end) protected abstract ObjectcreateSnippetRegion(String name, List<Object> tags, Object snippetTag, boolean isDummyRegion, boolean considerPrevTag) protected abstract Objectprotected abstract voidprotected abstract ObjectcreateTypeReference(int primitiveToken) protected abstract ObjectcreateTypeReference(int primitiveToken, boolean canBeModule) protected intprotected intgetNumberOfSingleLineCommentInSnippetTag(String tokenString) protected intintindexOfLastSingleComment(String tokenString, int last) protected booleanprotected ObjectparseArguments(Object receiver) protected ObjectparseArguments(Object receiver, boolean checkVerifySpaceOrEndComment) protected booleanprotected booleanparseHtmlTag(int previousPosition, int endTextPosition) Parse a possible HTML tag like: <code> <br> <h?protected booleanparseIdentifierTag(boolean report) protected ObjectparseMember(Object receiver) protected ObjectparseMember(Object receiver, boolean refInStringLiteral) protected booleanprotected ObjectparseQualifiedName(boolean reset) protected ObjectparseQualifiedName(boolean reset, boolean allowModule) protected booleanprotected booleanparseReference(boolean allowModule) protected booleanprotected ObjectparseSnippetInlineTags(String tokenString, Object snippetTag, Scanner sScanner) protected abstract booleanparseTag(int previousPosition) protected booleanprotected charpeekChar()protected voidpushExternalSnippetText(char[] text, int start, int end, boolean addNewLine, Object snippetTag) protected voidpushIdentifier(boolean newLength, boolean isToken) protected voidpushOnAstStack(Object node, boolean newLength) protected abstract booleanpushParamName(boolean isTypeParam) protected abstract booleanpushSeeRef(Object statement) protected voidpushSnippetText(char[] text, int start, int end, boolean addNewLine, Object snippetTag) protected voidpushText(int start, int end) protected abstract booleanpushThrowName(Object typeRef) protected charreadChar()protected intprotected intprotected intprotected voidrecordInheritedPosition(long position) protected voidrefreshInlineTagPosition(int previousPosition) protected voidprotected voidsetInlineTagStarted(boolean started) voidsetProjectPath(String projectPath) voidsetProjectSrcClasspath(List path) protected abstract voidsetRegionPosition(int currentPosition) protected abstract voidsetSnippetError(Object tag, String value) protected abstract voidsetSnippetID(Object tag, String value) protected abstract voidsetSnippetIsValid(Object tag, boolean value) protected voidprotected ObjectsyntaxRecoverModuleQualifiedName(int primitiveToken, int moduleTokenCount) protected ObjectsyntaxRecoverQualifiedName(int primitiveToken) toString()protected abstract voidprotected voidprotected booleanverifyEndLine(int textPosition) protected boolean
-
Felddetails
-
COMPIL_PARSER
public static final int COMPIL_PARSER- Siehe auch:
-
DOM_PARSER
public static final int DOM_PARSER- Siehe auch:
-
SELECTION_PARSER
public static final int SELECTION_PARSER- Siehe auch:
-
COMPLETION_PARSER
public static final int COMPLETION_PARSER- Siehe auch:
-
SOURCE_PARSER
public static final int SOURCE_PARSER- Siehe auch:
-
FORMATTER_COMMENT_PARSER
public static final int FORMATTER_COMMENT_PARSER- Siehe auch:
-
PARSER_KIND
protected static final int PARSER_KIND- Siehe auch:
-
TEXT_PARSE
protected static final int TEXT_PARSE- Siehe auch:
-
TEXT_VERIF
protected static final int TEXT_VERIF- Siehe auch:
-
QUALIFIED_NAME_RECOVERY
protected static final int QUALIFIED_NAME_RECOVERY- Siehe auch:
-
ARGUMENT_RECOVERY
protected static final int ARGUMENT_RECOVERY- Siehe auch:
-
ARGUMENT_TYPE_RECOVERY
protected static final int ARGUMENT_TYPE_RECOVERY- Siehe auch:
-
EMPTY_ARGUMENT_RECOVERY
protected static final int EMPTY_ARGUMENT_RECOVERY- Siehe auch:
-
scanner
-
source
public char[] source -
sourceParser
-
checkDocComment
public boolean checkDocComment -
setJavadocPositions
public boolean setJavadocPositions -
reportProblems
public boolean reportProblems -
complianceLevel
protected long complianceLevel -
sourceLevel
protected long sourceLevel -
inheritedPositions
protected long[] inheritedPositions -
inheritedPositionsPtr
protected int inheritedPositionsPtr -
deprecated
protected boolean deprecated -
returnStatement
-
javadocStart
protected int javadocStart -
javadocEnd
protected int javadocEnd -
javadocTextStart
protected int javadocTextStart -
javadocTextEnd
protected int javadocTextEnd -
firstTagPosition
protected int firstTagPosition -
index
protected int index -
lineEnd
protected int lineEnd -
tokenPreviousPosition
protected int tokenPreviousPosition -
lastIdentifierEndPosition
protected int lastIdentifierEndPosition -
starPosition
protected int starPosition -
textStart
protected int textStart -
memberStart
protected int memberStart -
tagSourceStart
protected int tagSourceStart -
tagSourceEnd
protected int tagSourceEnd -
inlineTagStart
protected int inlineTagStart -
lineEnds
protected int[] lineEnds -
lineStarted
protected boolean lineStarted -
inlineTagStarted
protected boolean inlineTagStarted -
abort
protected boolean abort -
kind
protected int kind -
tagValue
protected int tagValue -
lastBlockTagValue
protected int lastBlockTagValue -
snippetInlineTagStarted
protected boolean snippetInlineTagStarted -
identifierPtr
protected int identifierPtr -
identifierStack
protected char[][] identifierStack -
identifierLengthPtr
protected int identifierLengthPtr -
identifierLengthStack
protected int[] identifierLengthStack -
identifierPositionStack
protected long[] identifierPositionStack -
AST_STACK_INCREMENT
protected static final int AST_STACK_INCREMENT- Siehe auch:
-
astPtr
protected int astPtr -
astStack
-
astLengthPtr
protected int astLengthPtr -
astLengthStack
protected int[] astLengthStack -
usesReferencesPtr
protected int usesReferencesPtr -
usesReferencesStack
-
providesReferencesPtr
protected int providesReferencesPtr -
providesReferencesStack
-
-
Konstruktordetails
-
AbstractCommentParser
-
-
Methodendetails
-
commentParse
protected boolean commentParse() -
consumeToken
protected void consumeToken() -
createArgumentReference
protected abstract Object createArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPos, long argNamePos) throws InvalidInputException - Löst aus:
InvalidInputException
-
createFakeReference
protected boolean createFakeReference(int start) -
createFieldReference
- Löst aus:
InvalidInputException
-
createMethodReference
protected abstract Object createMethodReference(Object receiver, List arguments) throws InvalidInputException - Löst aus:
InvalidInputException
-
createReturnStatement
-
createTag
protected abstract void createTag() -
createTypeReference
-
createTypeReference
-
createModuleTypeReference
-
getTokenEndPosition
protected int getTokenEndPosition() -
getCurrentTokenType
protected int getCurrentTokenType()- Gibt zurück:
- Returns the currentTokenType.
-
parseArguments
- Löst aus:
InvalidInputException
-
parseArguments
protected Object parseArguments(Object receiver, boolean checkVerifySpaceOrEndComment) throws InvalidInputException - Löst aus:
InvalidInputException
-
parseHtmlTag
protected boolean parseHtmlTag(int previousPosition, int endTextPosition) throws InvalidInputException Parse a possible HTML tag like:- <code>
- <br>
- <h?>
- Parameter:
previousPosition- The position of the 'Ungültige Eingabe: "<"' character on which the tag might startendTextPosition- The position of the end of the previous text- Gibt zurück:
trueif a valid html tag has been parsed,falseotherwise- Löst aus:
InvalidInputException- If any problem happens during the parse in this area
-
lookForTagsInSnippets
protected boolean lookForTagsInSnippets() -
parseHref
- Löst aus:
InvalidInputException
-
parseIdentifierTag
protected boolean parseIdentifierTag(boolean report) -
parseMember
- Löst aus:
InvalidInputException
-
parseMember
protected Object parseMember(Object receiver, boolean refInStringLiteral) throws InvalidInputException - Löst aus:
InvalidInputException
-
parseParam
- Löst aus:
InvalidInputException
-
parseQualifiedName
- Löst aus:
InvalidInputException
-
parseQualifiedName
protected Object parseQualifiedName(boolean reset, boolean allowModule) throws InvalidInputException - Löst aus:
InvalidInputException
-
parseReference
- Löst aus:
InvalidInputException
-
parseReference
- Löst aus:
InvalidInputException
-
parseSnippet
- Löst aus:
InvalidInputException
-
indexOfLastSingleComment
-
getNumberOfSingleLineCommentInSnippetTag
-
parseSnippetInlineTags
-
parseTag
- Löst aus:
InvalidInputException
-
parseThrows
protected boolean parseThrows() -
peekChar
protected char peekChar() -
pushIdentifier
protected void pushIdentifier(boolean newLength, boolean isToken) -
pushOnAstStack
-
pushParamName
protected abstract boolean pushParamName(boolean isTypeParam) -
pushSeeRef
-
pushText
protected void pushText(int start, int end) -
pushSnippetText
protected void pushSnippetText(char[] text, int start, int end, boolean addNewLine, Object snippetTag) -
closeJavaDocRegion
-
areRegionsClosed
protected abstract boolean areRegionsClosed() -
pushExternalSnippetText
protected void pushExternalSnippetText(char[] text, int start, int end, boolean addNewLine, Object snippetTag) -
createSnippetTag
-
createSnippetInnerTag
-
createSnippetRegion
-
addTagProperties
-
addSnippetInnerTag
-
setSnippetError
-
setSnippetIsValid
-
setSnippetID
-
pushThrowName
-
setRegionPosition
protected abstract void setRegionPosition(int currentPosition) -
readChar
protected char readChar() -
readToken
- Löst aus:
InvalidInputException
-
readTokenAndConsume
- Löst aus:
InvalidInputException
-
readTokenSafely
protected int readTokenSafely() -
recordInheritedPosition
protected void recordInheritedPosition(long position) -
refreshInlineTagPosition
protected void refreshInlineTagPosition(int previousPosition) -
refreshReturnStatement
protected void refreshReturnStatement() -
setInlineTagStarted
protected void setInlineTagStarted(boolean started) - Parameter:
started- the inlineTagStarted to set
-
syntaxRecoverQualifiedName
- Löst aus:
InvalidInputException
-
syntaxRecoverModuleQualifiedName
protected Object syntaxRecoverModuleQualifiedName(int primitiveToken, int moduleTokenCount) throws InvalidInputException - Löst aus:
InvalidInputException
-
toString
-
updateDocComment
protected abstract void updateDocComment() -
updateLineEnd
protected void updateLineEnd() -
verifyEndLine
protected boolean verifyEndLine(int textPosition) -
verifySpaceOrEndComment
protected boolean verifySpaceOrEndComment() -
setSourceComplianceLevel
protected void setSourceComplianceLevel() -
setProjectPath
- Parameter:
projectPath- Absolute path in local file system
-
setProjectSrcClasspath
-