public AstInfo(Parser.ParserTask task, T rootNode)
public T getRootNode()
public @NonNull TextDocument getTextDocument()
Returns the text document that was parsed. This has info like language version, etc.
public LanguageProcessor getLanguageProcessor()
Returns the language processor that parsed the tree.
@Deprecated public Map<Integer,String> getSuppressionComments()
This map is later used to determine, if a violation is being suppressed. It is suppressed, if the line of the violation is contained in this suppress map.
public @Nullable ViolationSuppressor.SuppressionCommentWrapper getSuppressionComment(int lineNumber)
Return the suppresson comment at the given line, or null if there is none.
public Collection<ViolationSuppressor.SuppressionCommentWrapper> getAllSuppressionComments()
Return all suppression comments in the file. Only single line comments are considered, that start with the configured "suppress marker", which by default is
PMDConfiguration.DEFAULT_SUPPRESS_MARKER
. The text after the suppress marker is used as a "review comment" and included in this map.
public DataMap<DataMap.DataKey<?,?>> getUserMap()
Returns a data map used to store additional information on this ast info.
public AstInfo<T> withSuppressionComments(Collection<? extends ViolationSuppressor.SuppressionCommentWrapper> suppressionComments)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4