Uses of Class
net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken
Packages that use JavaccToken
Package
Description
Utilities to implement a CPD
CpdLexer.Support classes for language implementations based on JavaCC.
Logic about reporting: violations, suppression etc.
-
Uses of JavaccToken in net.sourceforge.pmd.cpd.impl
Constructor parameters in net.sourceforge.pmd.cpd.impl with type arguments of type JavaccTokenModifierConstructorDescriptionJavaCCTokenFilter(TokenManager<JavaccToken> tokenManager) Creates a new JavaCCTokenFilter -
Uses of JavaccToken in net.sourceforge.pmd.lang.ast
Constructors in net.sourceforge.pmd.lang.ast with parameters of type JavaccTokenModifierConstructorDescriptionParseException(@NonNull JavaccToken currentTokenVal, int[][] expectedTokenSequencesVal) This constructor is called by Javacc. -
Uses of JavaccToken in net.sourceforge.pmd.lang.ast.impl.javacc
Fields in net.sourceforge.pmd.lang.ast.impl.javacc declared as JavaccTokenModifier and TypeFieldDescriptionJavaccToken.nextA reference to the next regular (non-special) token from the input stream.JavaccToken.specialTokenThis field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.Methods in net.sourceforge.pmd.lang.ast.impl.javacc that return JavaccTokenModifier and TypeMethodDescriptionJavaccTokenDocument.createToken(int kind, CharStream cs, @Nullable String image) JavaccTokenDocument.TokenDocumentBehavior.createToken(JavaccTokenDocument self, int kind, CharStream cs, @Nullable String image) Creates a new token with the given kind.AbstractJjtreeNode.getFirstToken()JavaccTokenDocument.getFirstToken()JjtreeNode.getFirstToken()AbstractJjtreeNode.getLastToken()JjtreeNode.getLastToken()JavaccToken.getNext()JavaccToken.getPreviousComment()static JavaccTokenJavaccToken.implicitBefore(JavaccToken next) Creates an implicit token, with zero length, that is linked to the given token as its special predecessor.static JavaccTokenJavaccToken.newImplicit(int offset, JavaccTokenDocument document) Returns a new implicit token, positioned at the given offset.JavaccTokenDocument.open()Open the document.JavaccToken.replaceImage(CharStream charStream) Returns a new token with the same kind as this one, whose image is replaced by the one marked on the char stream.JavaccToken.withKind(int newKind) Returns a new token with the given kind, and all other parameters identical to this one.Methods in net.sourceforge.pmd.lang.ast.impl.javacc that return types with arguments of type JavaccTokenModifier and TypeMethodDescriptiondefault Iterable<JavaccToken>JjtreeNode.tokens()Returns a token range, that includes the first and last token.Methods in net.sourceforge.pmd.lang.ast.impl.javacc with parameters of type JavaccTokenModifier and TypeMethodDescriptionvoidJjtreeBuilder.closeNodeScope(N n, boolean condition, JavaccToken lastToken) Close the node scope if the condition is true.voidJjtreeBuilder.closeNodeScope(N n, int num, JavaccToken lastToken) Close the node scope and adds the given number of children to the node.protected voidAbstractJjtreeNode.enlargeLeft(JavaccToken childFst) static JavaccTokenJavaccToken.implicitBefore(JavaccToken next) Creates an implicit token, with zero length, that is linked to the given token as its special predecessor.voidJjtreeBuilder.openNodeScope(N n, JavaccToken firstToken) protected voidAbstractTokenManager.processCommentForSuppression(JavaccToken token) protected voidAbstractJjtreeNode.setFirstToken(JavaccToken token) protected voidAbstractJjtreeNode.setLastToken(JavaccToken token) -
Uses of JavaccToken in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting with parameters of type JavaccTokenModifier and TypeMethodDescriptionvoidRuleContext.addViolationWithPosition(Node node, JavaccToken token, String message, Object... formatArgs) Record a new violation of the contextual rule, at the given token location.