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
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.compiler.parser.JavadocTagConstants
JavadocTagConstants.LevelTags
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected boolean
protected static final int
protected static final int
protected static final int
protected int
protected int[]
protected int
protected Object[]
boolean
static final int
static final int
protected long
protected boolean
static final int
protected static final int
protected int
static final int
protected int
protected int[]
protected long[]
protected int
protected char[][]
protected int
protected long[]
protected int
protected int
protected boolean
protected int
protected int
protected int
protected int
protected int
protected int
protected int
protected int
protected int[]
protected boolean
protected int
protected static final int
protected int
protected TypeReference[]
protected static final int
boolean
protected Object
static final int
boolean
protected boolean
char[]
static final int
protected long
protected Parser
protected int
protected int
protected int
protected int
protected static final int
protected static final int
protected int
protected int
protected int
protected TypeReference[]
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.parser.JavadocTagConstants
ALL_TAGS_LENGTH, BLOCK_IDX, BLOCK_TAGS, BLOCK_TAGS_LENGTH, BLOCK_TAGS_RAW, CLASS_TAGS, COMPILATION_UNIT_TAGS, FIELD_TAGS, HREF_TAG, IN_SNIPPET_TAGS, IN_SNIPPET_TAGS_LENGTH, INLINE_IDX, INLINE_TAGS, INLINE_TAGS_LENGTH, INLINE_TAGS_RAW, JAVADOC_TAG_TYPE, JAVADOC_TAG_TYPE_16PLUS, 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_INLINE_BLOCK, 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
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract void
addSnippetInnerTag
(Object tag, Object snippetTag) protected abstract void
addTagProperties
(Object Tag, Map<String, Object> map, int tagCount) protected abstract boolean
protected abstract void
closeJavaDocRegion
(String name, Object snippetTag, int end) protected boolean
protected void
protected abstract Object
createArgumentReference
(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPos, long argNamePos) protected boolean
createFakeReference
(int start) protected abstract Object
createFieldReference
(Object receiver) protected abstract Object
createMethodReference
(Object receiver, List arguments) protected abstract Object
createModuleTypeReference
(int primitiveToken, int moduleRefTokenCount) protected Object
protected abstract Object
createSnippetInnerTag
(String tagName, int start, int end) protected abstract Object
createSnippetRegion
(String name, List<Object> tags, Object snippetTag, boolean isDummyRegion, boolean considerPrevTag) protected abstract Object
protected abstract void
protected abstract Object
createTypeReference
(int primitiveToken) protected abstract Object
createTypeReference
(int primitiveToken, boolean canBeModule) protected int
protected int
getNumberOfSingleLineCommentInSnippetTag
(String tokenString) protected int
int
indexOfLastSingleComment
(String tokenString, int last) protected boolean
protected Object
parseArguments
(Object receiver) protected Object
parseArguments
(Object receiver, boolean checkVerifySpaceOrEndComment) protected boolean
protected boolean
parseHtmlTag
(int previousPosition, int endTextPosition) Parse a possible HTML tag like: <code> <br> <h?protected boolean
parseIdentifierTag
(boolean report) protected Object
parseMember
(Object receiver) protected Object
parseMember
(Object receiver, boolean refInStringLiteral) protected boolean
protected Object
parseQualifiedName
(boolean reset) protected Object
parseQualifiedName
(boolean reset, boolean allowModule) protected boolean
protected boolean
parseReference
(boolean allowModule) protected boolean
protected Object
parseSnippetInlineTags
(String tokenString, Object snippetTag, Scanner sScanner) protected abstract boolean
parseTag
(int previousPosition) protected boolean
protected char
peekChar()
protected void
pushExternalSnippetText
(char[] text, int start, int end, boolean addNewLine, Object snippetTag) protected void
pushIdentifier
(boolean newLength, boolean isToken) protected void
pushOnAstStack
(Object node, boolean newLength) protected abstract boolean
pushParamName
(boolean isTypeParam) protected abstract boolean
pushSeeRef
(Object statement) protected void
pushSnippetText
(char[] text, int start, int end, boolean addNewLine, Object snippetTag) protected void
pushText
(int start, int end) protected abstract boolean
pushThrowName
(Object typeRef) protected char
readChar()
protected int
protected int
protected int
protected void
recordInheritedPosition
(long position) protected void
refreshInlineTagPosition
(int previousPosition) protected void
protected void
setInlineTagStarted
(boolean started) void
setProjectPath
(String projectPath) void
setProjectSrcClasspath
(List path) protected abstract void
setRegionPosition
(int currentPosition) protected abstract void
setSnippetError
(Object tag, String value) protected abstract void
setSnippetID
(Object tag, String value) protected abstract void
setSnippetIsValid
(Object tag, boolean value) protected void
protected Object
syntaxRecoverModuleQualifiedName
(int primitiveToken, int moduleTokenCount) protected Object
syntaxRecoverQualifiedName
(int primitiveToken) toString()
protected abstract void
protected void
protected boolean
verifyEndLine
(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:
true
if a valid html tag has been parsed,false
otherwise- 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
-