Klasse AbstractCommentParser

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser
Alle implementierten Schnittstellen:
JavadocTagConstants
Bekannte direkte Unterklassen:
JavadocParser

public abstract class AbstractCommentParser extends Object implements JavadocTagConstants
Parser specialized for decoding javadoc comments
  • 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

      public Scanner scanner
    • source

      public char[] source
    • sourceParser

      protected Parser 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

      protected Object 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

      protected Object[] astStack
    • astLengthPtr

      protected int astLengthPtr
    • astLengthStack

      protected int[] astLengthStack
    • usesReferencesPtr

      protected int usesReferencesPtr
    • usesReferencesStack

      protected TypeReference[] usesReferencesStack
    • providesReferencesPtr

      protected int providesReferencesPtr
    • providesReferencesStack

      protected TypeReference[] providesReferencesStack
  • Konstruktordetails

    • AbstractCommentParser

      protected AbstractCommentParser(Parser sourceParser)
  • 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

      protected abstract Object createFieldReference(Object receiver) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • createMethodReference

      protected abstract Object createMethodReference(Object receiver, List arguments) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • createReturnStatement

      protected Object createReturnStatement()
    • createTag

      protected abstract void createTag()
    • createTypeReference

      protected abstract Object createTypeReference(int primitiveToken)
    • createTypeReference

      protected abstract Object createTypeReference(int primitiveToken, boolean canBeModule)
    • createModuleTypeReference

      protected abstract Object createModuleTypeReference(int primitiveToken, int moduleRefTokenCount)
    • getTokenEndPosition

      protected int getTokenEndPosition()
    • getCurrentTokenType

      protected int getCurrentTokenType()
      Gibt zurück:
      Returns the currentTokenType.
    • parseArguments

      protected Object parseArguments(Object receiver) throws InvalidInputException
      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?>
      Note that the default is to do nothing!
      Parameter:
      previousPosition - The position of the 'Ungültige Eingabe: "<"' character on which the tag might start
      endTextPosition - 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

      protected boolean parseHref() throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseIdentifierTag

      protected boolean parseIdentifierTag(boolean report)
    • parseMember

      protected Object parseMember(Object receiver) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseMember

      protected Object parseMember(Object receiver, boolean refInStringLiteral) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseParam

      protected boolean parseParam() throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseQualifiedName

      protected Object parseQualifiedName(boolean reset) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseQualifiedName

      protected Object parseQualifiedName(boolean reset, boolean allowModule) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseReference

      protected boolean parseReference() throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseReference

      protected boolean parseReference(boolean allowModule) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseSnippet

      protected boolean parseSnippet() throws InvalidInputException
      Löst aus:
      InvalidInputException
    • indexOfLastSingleComment

      public int indexOfLastSingleComment(String tokenString, int last)
    • getNumberOfSingleLineCommentInSnippetTag

      protected int getNumberOfSingleLineCommentInSnippetTag(String tokenString)
    • parseSnippetInlineTags

      protected Object parseSnippetInlineTags(String tokenString, Object snippetTag, Scanner sScanner)
    • parseTag

      protected abstract boolean parseTag(int previousPosition) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • parseThrows

      protected boolean parseThrows()
    • peekChar

      protected char peekChar()
    • pushIdentifier

      protected void pushIdentifier(boolean newLength, boolean isToken)
    • pushOnAstStack

      protected void pushOnAstStack(Object node, boolean newLength)
    • pushParamName

      protected abstract boolean pushParamName(boolean isTypeParam)
    • pushSeeRef

      protected abstract boolean pushSeeRef(Object statement)
    • pushText

      protected void pushText(int start, int end)
    • pushSnippetText

      protected void pushSnippetText(char[] text, int start, int end, boolean addNewLine, Object snippetTag)
    • closeJavaDocRegion

      protected abstract void closeJavaDocRegion(String name, Object snippetTag, int end)
    • areRegionsClosed

      protected abstract boolean areRegionsClosed()
    • pushExternalSnippetText

      protected void pushExternalSnippetText(char[] text, int start, int end, boolean addNewLine, Object snippetTag)
    • createSnippetTag

      protected abstract Object createSnippetTag()
    • createSnippetInnerTag

      protected abstract Object createSnippetInnerTag(String tagName, int start, int end)
    • createSnippetRegion

      protected abstract Object createSnippetRegion(String name, List<Object> tags, Object snippetTag, boolean isDummyRegion, boolean considerPrevTag)
    • addTagProperties

      protected abstract void addTagProperties(Object Tag, Map<String,Object> map, int tagCount)
    • addSnippetInnerTag

      protected abstract void addSnippetInnerTag(Object tag, Object snippetTag)
    • setSnippetError

      protected abstract void setSnippetError(Object tag, String value)
    • setSnippetIsValid

      protected abstract void setSnippetIsValid(Object tag, boolean value)
    • setSnippetID

      protected abstract void setSnippetID(Object tag, String value)
    • pushThrowName

      protected abstract boolean pushThrowName(Object typeRef)
    • setRegionPosition

      protected abstract void setRegionPosition(int currentPosition)
    • readChar

      protected char readChar()
    • readToken

      protected int readToken() throws InvalidInputException
      Löst aus:
      InvalidInputException
    • readTokenAndConsume

      protected int readTokenAndConsume() throws InvalidInputException
      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

      protected Object syntaxRecoverQualifiedName(int primitiveToken) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • syntaxRecoverModuleQualifiedName

      protected Object syntaxRecoverModuleQualifiedName(int primitiveToken, int moduleTokenCount) throws InvalidInputException
      Löst aus:
      InvalidInputException
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • updateDocComment

      protected abstract void updateDocComment()
    • updateLineEnd

      protected void updateLineEnd()
    • verifyEndLine

      protected boolean verifyEndLine(int textPosition)
    • verifySpaceOrEndComment

      protected boolean verifySpaceOrEndComment()
    • setSourceComplianceLevel

      protected void setSourceComplianceLevel()
    • setProjectPath

      public void setProjectPath(String projectPath)
      Parameter:
      projectPath - Absolute path in local file system
    • setProjectSrcClasspath

      public void setProjectSrcClasspath(List path)