Modifier and Type | Method and Description |
---|---|
static String |
getTextAttributeValue(DetailAST ast)
Returns content of the text attribute of the ast element.
|
static String |
printXpathBranch(String xpath,
File file)
Returns xpath query results on file as string.
|
static boolean |
supportsTextAttribute(DetailAST ast)
Checks, if specified node can have
@text attribute. |
public static boolean supportsTextAttribute(DetailAST ast)
@text
attribute.ast
- DetailAst
element@text
attribute, false otherwisepublic static String getTextAttributeValue(DetailAST ast)
ast
- DetailAst
elementpublic static String printXpathBranch(String xpath, File file) throws CheckstyleException, IOException
xpath
- query to evaluatefile
- file to run onCheckstyleException
- if some parsing error happensIOException
- if an error occursCopyright © 2001–2020. All rights reserved.