repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageVersion.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import net.sourceforge.pmd.Rule;
/**
* Represents a version of a {@link Language}. Language instances provide
* a list of supported versions ({@link Language#getVersions()}). Individual
* vers... | 3,811 | 33.035714 | 104 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageProcessor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import java.util.Collections;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.RuleSets;
import net.sourceforge.pmd.annotation.Internal... | 4,245 | 29.546763 | 88 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/JvmLanguagePropertyBundle.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import java.io.IOException;
import org.apache.commons.lang3.StringUtils;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.PMDConfiguration;
import net.sourcef... | 3,074 | 37.4375 | 131 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageFilenameFilter.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import java.io.File;
import java.io.FilenameFilter;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Set;
/**
* This is an implementation of the {@l... | 2,334 | 27.13253 | 85 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/PlainTextLanguage.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import net.sourceforge.pmd.annotation.Experimental;
import net.sourceforge.pmd.lang.ast.AstInfo;
import net.sourceforge.pmd.lang.ast.Parser;
import net.sourceforge.pmd.lang.ast.Parser.ParserTask;
i... | 2,718 | 28.236559 | 110 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/TokenManager.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import net.sourceforge.pmd.lang.ast.GenericToken;
/**
* Common interface for interacting with parser Token Managers.
*/
public interface TokenManager<T extends GenericToken<T>> {
T getNext... | 332 | 18.588235 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/AbstractLanguageVersionHandler.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
/**
* This is a generic implementation of the LanguageVersionHandler interface.
*
* @see LanguageVersionHandler
*/
public abstract class AbstractLanguageVersionHandler implements LanguageVersio... | 335 | 20 | 88 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/AbstractPmdLanguageVersionHandler.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
/**
* Base language version handler for languages that support PMD, i.e. can build an AST
* and support AST processing stages.
*
* @author Clément Fournier
* @since 6.10.0
*/
public abstract... | 406 | 21.611111 | 96 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageVersionDiscoverer.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import java.io.File;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUti... | 5,378 | 32.409938 | 109 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguagePropertyBundle.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.PMDConfiguration;
import net.sourceforge.pmd.properties.AbstractPropertySource;
import net.sourceforge.pmd.pro... | 2,910 | 33.654762 | 125 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageRegistry.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.... | 8,980 | 35.21371 | 123 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageProcessorRegistry.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang;
import static net.sourceforge.pmd.util.StringUtil.CaseConvention.SCREAMING_SNAKE_CASE;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
im... | 9,671 | 38.966942 | 180 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/TextAvailableNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import net.sourceforge.pmd.lang.document.Chars;
import net.sourceforge.pmd.lang.document.TextDocument;
import net.sourceforge.pmd.lang.document.TextRegion;
import net.sourceforge.pmd.lang.rule.... | 1,765 | 29.448276 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/AstInfo.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.util.Collections;
import java.util.Map;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.annotation.Experimental;
import net.sourceforge.pmd.l... | 2,976 | 30.336842 | 106 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/Node.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull... | 23,171 | 32.534009 | 120 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/GenericToken.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.util.stream.Stream;
import org.apache.commons.lang3.StringUtils;
import net.sourceforge.pmd.annotation.Experimental;
import net.sourceforge.pmd.lang.document.Chars;
import net.sou... | 5,163 | 31.89172 | 115 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/SemanticErrorReporter.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.text.MessageFormat;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.slf4j.event.Level;
import net.sourceforge.pmd.util.StringUtil;
import net.sourceforge.pm... | 4,766 | 34.574627 | 104 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/AstVisitorBase.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
/**
* Base implementation of {@link AstVisitor}, that performs a top-down
* (preorder) visit and may accumulate a result.
*
* <p>Note that if you care about the result ({@code <R>}), then y... | 1,369 | 31.619048 | 84 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/FileAnalysisException.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.util.Objects;
import org.apache.commons.lang3.StringUtils;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
i... | 3,020 | 27.233645 | 121 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/AstVisitor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
/**
* Root interface for AST visitors. Language modules publish a subinterface
* with one separate visit method for each type of node in the language,
* eg JavaVisitor.
*
* <p>Usually you ... | 1,691 | 30.924528 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/NodeStream.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Optional;
import java.util.funct... | 44,946 | 35.189211 | 214 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/SemanticException.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
/**
* An error that occurs after validating a file.
*/
public class SemanticException extends FileAnalysisException {
public SemanticException() {
super();
}
public Sema... | 563 | 19.142857 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/RootNode.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
/**
* This interface identifies the root node of an AST. Each language
* implementation must ensure that every AST its parser produces has
* a RootNode as its root, and that there is no oth... | 467 | 22.4 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/Parser.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.util.Objects;
import net.sourceforge.pmd.lang.LanguageProcessor;
import net.sourceforge.pmd.lang.LanguageProcessorRegistry;
import net.sourceforge.pmd.lang.LanguageVersion;
import ... | 3,259 | 30.047619 | 119 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/TokenMgrError.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge... | 2,667 | 27.382979 | 129 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/ParseException.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.stream.Collectors;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullne... | 4,808 | 31.493243 | 113 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/TokenDocument.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl;
import net.sourceforge.pmd.annotation.Experimental;
import net.sourceforge.pmd.lang.ast.GenericToken;
import net.sourceforge.pmd.lang.document.Chars;
import net.sourceforge.pmd.lang.docume... | 1,027 | 23.47619 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/AbstractNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl;
import org.apache.commons.lang3.ArrayUtils;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.ast.NodeS... | 7,427 | 33.388889 | 115 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/GenericNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.ast.NodeStream;
import net.sourceforge.pmd.lang.ast.... | 2,644 | 26.268041 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/EscapeTranslator.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import static java.lang.Integer.min;
import net.sourceforge.pmd.lang.document.Chars;
import net.sourceforge.pmd.lang.document.FileLocation;
import net.sourceforge.pmd.lang.document... | 5,267 | 32.769231 | 107 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/BackslashEscapeTranslator.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import static java.lang.Integer.min;
import net.sourceforge.pmd.lang.document.Chars;
import net.sourceforge.pmd.lang.document.TextDocument;
/**
* A base class for readers that ha... | 2,336 | 31.458333 | 110 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/package-info.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* Support classes for language implementations based on JavaCC.
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
| 211 | 22.555556 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/JjtreeParserAdapter.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import net.sourceforge.pmd.lang.ast.FileAnalysisException;
import net.sourceforge.pmd.lang.ast.ParseException;
import net.sourceforge.pmd.lang.ast.Parser;
import net.sourceforge.pm... | 1,733 | 33.68 | 95 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/JavaccTokenDocument.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import java.util.Collections;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import ... | 6,171 | 32.726776 | 115 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/MalformedSourceException.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.ast.FileAnalysisException;
import net.sourceforge.pmd.lang.doc... | 1,033 | 26.210526 | 97 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/JjtreeBuilder.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import java.util.ArrayList;
import java.util.List;
/**
* Shared implementation of the tree builder generated by JJTree.
*
* @param <N> Internal base class for nodes
*/
public f... | 5,711 | 27.41791 | 108 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/JavaEscapeTranslator.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import net.sourceforge.pmd.lang.document.Chars;
import net.sourceforge.pmd.lang.document.TextDocument;
/**
* An implementation of {@link EscapeTranslator} that translates Java
* ... | 3,086 | 31.494737 | 121 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/CharStream.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import java.io.EOFException;
import net.sourceforge.pmd.lang.ast.impl.javacc.JavaccTokenDocument.TokenDocumentBehavior;
import net.sourceforge.pmd.lang.document.Chars;
import net.... | 5,459 | 30.2 | 119 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/AbstractTokenManager.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import java.util.HashMap;
import java.util.Map;
import net.sourceforge.pmd.PMDConfiguration;
import net.sourceforge.pmd.lang.TokenManager;
/**
* A base class for the token manage... | 761 | 25.275862 | 81 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/JavaccToken.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import net.sourceforge.pmd.lang.ast.GenericToken;
import net.sourceforge.pmd.lang.document.Chars;
import net.sourceforge.pmd.lang.document.FileLocation;
import net.sourceforge.pmd.l... | 8,140 | 30.677043 | 132 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/AbstractJjtreeNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import net.sourceforge.pmd.annotation.Experimental;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.ast.impl.AbstractNode;
import net.sourceforge.pmd.lang.... | 4,491 | 28.359477 | 155 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/javacc/JjtreeNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.javacc;
import net.sourceforge.pmd.lang.ast.GenericToken;
import net.sourceforge.pmd.lang.ast.TextAvailableNode;
import net.sourceforge.pmd.lang.ast.impl.GenericNode;
/**
* Base interface... | 957 | 25.611111 | 96 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/BaseAntlrErrorNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import org.antlr.v4.runtime.Token;
import org.checkerframework.checker.nullness.qual.NonNull;
public abstract class BaseAntlrErrorNode<N extends AntlrNode<N>> extends BaseAntlrTerm... | 762 | 22.84375 | 99 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/AntlrToken.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.Token;
import net.sourceforge.pmd.annotation.Experimental;
import net.sourceforge.pmd.lang.ast.GenericToken;
import n... | 2,223 | 23.711111 | 98 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/BaseAntlrNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.ParseTree;
import org.... | 4,393 | 31.308824 | 126 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/AntlrNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import net.sourceforge.pmd.lang.ast.impl.GenericNode;
/**
* Base interface for all Antlr-based implementation of the Node interface.
*/
public interface AntlrNode<N extends Antlr... | 357 | 22.866667 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/AntlrGeneratedParserBase.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import org.antlr.v4.runtime.Parser;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.RuleContext;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.ru... | 3,324 | 36.359551 | 113 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/AntlrNameDictionary.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Stream;
import org.antlr.v4.runtime.ParserRuleContext... | 7,234 | 31.886364 | 120 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/BaseAntlrTerminalNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import org.antlr.v4.runtime.RuleContext;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
import org... | 3,288 | 28.106195 | 156 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/BaseAntlrInnerNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import java.util.List;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.RuleContext;
import org.antlr.v4... | 5,136 | 30.906832 | 163 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/AntlrTokenManager.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
import n... | 2,273 | 31.028169 | 116 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/impl/antlr4/AntlrBaseParser.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.impl.antlr4;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.Lexer;
import net.sourceforge.pmd.lang.ast.ParseException;
import net.s... | 1,162 | 30.432432 | 123 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/AxisStream.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import static java.lang.Math.max;
import static java.lang.Math.min;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Spliterator;
import ... | 15,773 | 30.48503 | 142 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/GreedyNStream.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.Iterator;
import java.util.List;
import java.util.Spliterator;
import java.util.Spliterators;
import java.util.function.Function;
import org.checkerframework.checker.... | 2,607 | 25.08 | 94 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/Filtermap.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.Iterator;
import java.util.Objects;
import java.util.function.Function;
import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNul... | 3,441 | 26.536 | 108 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/TreeWalker.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.Iterator;
import java.util.List;
import org.checkerframework.checker.nullness.qual.N... | 4,588 | 29.593333 | 120 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/SingletonNodeStream.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predic... | 5,670 | 25.013761 | 116 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/StreamImpl.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Spliterator;
import java.util.Sp... | 9,889 | 36.89272 | 143 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/AncestorOrSelfIterator.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.ast.Node;
/** Iterates... | 805 | 19.15 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/TraversalUtils.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sour... | 3,758 | 29.072 | 145 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/internal/IteratorBasedNStream.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ast.internal;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Spliterator;
import java.util.Spliterators;
import java.util.... | 9,125 | 29.935593 | 158 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/package-info.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* Language-independent framework to represent code metrics. To find the build-in
* metrics for a language, find the language-specific
* utility class containing {@link net.sourceforge.pmd.lang.metrics.Metric}
* constants, eg... | 739 | 42.529412 | 140 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/Metric.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.metrics;
import static net.sourceforge.pmd.util.CollectionUtil.listOf;
import java.util.List;
import java.util.function.BiFunction;
import java.util.function.Function;
import org.checkerframework... | 6,364 | 33.592391 | 122 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/ParameterizedMetricKey.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.metrics;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.util.DataMap.DataKey;
/**
... | 2,494 | 30.987179 | 136 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/MetricOption.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.metrics;
/**
* Option to pass to a metric. Options modify the behaviour of a metric.
* You must bundle them into a {@link MetricOptions} to pass them all to a metric.
*
* <p>Options must be sui... | 778 | 21.911765 | 82 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/LanguageMetricsProvider.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.metrics;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.LanguageVersionHandler;
... | 1,950 | 29.484375 | 97 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/MetricsUtil.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.metrics;
import java.util.DoubleSummaryStatistics;
import java.util.Objects;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import net.sourceforge.pmd.lang.ast.Node;
/*... | 5,366 | 37.06383 | 151 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/MetricOptions.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.metrics;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Bundles a set of options ... | 4,156 | 21.349462 | 95 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/RootTextDocument.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.IOException;
import java.util.Objects;
import net.sourceforge.pmd.internal.util.BaseCloseable;
import net.sourceforge.pmd.lang.LanguageVersion;
/**
* A text document dir... | 4,663 | 33.548148 | 144 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/package-info.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* Contains types to model text files and handle operations on text.
* Parser implementations build upon this framework. This package is
* built around the type {@link net.sourceforge.pmd.lang.document.TextFile},
* which repr... | 826 | 36.590909 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/FragmentedDocBuilder.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import net.sourceforge.pmd.lang.document.FragmentedTextDocument.Fragment;
public final class FragmentedDocBuilder {
private final Chars mainBuf;
private final TextDocument origi... | 2,843 | 35.461538 | 127 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/ReaderTextFile.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.IOException;
import java.io.Reader;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.LanguageVersion;
import net.sourceforge.pmd.... | 1,514 | 24.25 | 92 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/FileLocation.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.util.Comparator;
import java.util.Objects;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.la... | 5,896 | 32.129213 | 124 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/CpdCompat.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import net.sourceforge.pmd.cpd.SourceCode;
import net.sourceforge.pmd.lang.LanguageVersion;
import net.sourceforge.pmd.lang.PlainTextLanguage;
/**
* Compatibility APIs, to be removed bef... | 1,067 | 25.04878 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextFile.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reade... | 10,558 | 36.845878 | 116 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/ReadOnlyFileException.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
/**
* Thrown when an attempt to write through a {@link TextFile}
* fails because the file is read-only.
*/
public class ReadOnlyFileException extends UnsupportedOperationException {
... | 452 | 24.166667 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextFileContent.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import j... | 12,750 | 38.354938 | 157 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/Chars.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Ch... | 22,748 | 30.639777 | 120 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextDocument.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.Closeable;
import java.io.IOException;
import java.io.Reader;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.annotation.DeprecatedUn... | 11,379 | 37.972603 | 125 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextRegion.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.util.Comparator;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* A contiguous range of text in a... | 8,961 | 34.283465 | 129 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/SourceCodePositioner.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.util.Arrays;
import net.sourceforge.pmd.util.AssertionUtil;
/**
* Wraps a piece of text, and converts absolute offsets to line/column
* coordinates, and back. This is used ... | 8,502 | 32.214844 | 117 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/FragmentedTextDocument.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.LanguageVersion;
/**
* A text document built as a set of deltas over another document.
*/
fi... | 4,606 | 27.438272 | 114 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/StringTextFile.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.LanguageVersion;
import net.sourceforge.pmd.util.AssertionUtil;
import net.sourceforge.pmd.util.... | 1,503 | 24.931034 | 109 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextFileBuilder.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.Reader;
import java.nio.charset.Charset;
import java.nio.file.Path;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.LanguageVer... | 3,660 | 28.524194 | 102 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextPos2d.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
* A place in a text document, represented as line/column information.
*/
public final class TextPos2d implements Comparabl... | 2,464 | 23.166667 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/FileCollector.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.Closeable;
import java.io.IOException;
import java.net.URI;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileSystem;
impor... | 15,632 | 34.691781 | 134 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/NioTextFile.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
import ... | 3,600 | 28.276423 | 124 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/BaseMappedDocument.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.IOException;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
* Base class for documents that apply a transform to their output offsets.
* This includes tr... | 3,349 | 29.733945 | 99 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/TextRange2d.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.util.Comparator;
import java.util.Objects;
/**
* A place in a text document, represented as line/column information.
*/
public final class TextRange2d implements Comparable<... | 3,262 | 27.622807 | 114 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/document/FileId.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.document;
import java.io.File;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.Ru... | 12,172 | 29.05679 | 108 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/AbstractDelegateRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule;
import java.util.List;
import java.util.Map;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.RulePriority;
import net.sourceforge.pmd.lang... | 6,342 | 23.490347 | 116 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/RuleTargetSelector.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
import net.sourceforge.p... | 4,363 | 28.687075 | 123 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/RuleReference.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import... | 11,712 | 34.068862 | 128 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/AbstractVisitorRule.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.lang.ast.AstVisitor;
import net.sourceforge.pmd.lang.ast.Node;
public abstract class AbstractVisitorRule extends AbstractRul... | 1,076 | 31.636364 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/ParametricRuleViolation.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule;
import java.util.Collections;
import java.util.Map;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.annotation.InternalApi;
import net.s... | 2,595 | 28.83908 | 125 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/XPathRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.apache.commons.lang3.StringUtils;
import org.apache.... | 6,943 | 31.754717 | 121 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/AbstractRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashSet;
import java... | 13,770 | 31.250585 | 134 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/NoAttribute.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule.xpath;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import net.sourceforge.p... | 1,698 | 31.673077 | 86 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/XPathVersion.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule.xpath;
import java.util.HashMap;
import java.util.Map;
/**
* Constants for XPath language version used in XPath queries.
*/
public enum XPathVersion {
/**
* XPath 1.0.
*
*... | 1,863 | 20.181818 | 79 | java |
pmd | pmd-master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/PmdXPathException.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule.xpath;
import org.apache.commons.lang3.exception.ContextedRuntimeException;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sf.saxon.trans.XPathException;
/**
* Unchec... | 1,873 | 28.746032 | 102 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.