public final class Util extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
NEVER_MATCH
A pattern that never matches (and does so efficiently)
|
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(Closeable pCloseable)
Quietly close the given resource, ignoring any exceptions.
|
static String |
getFirstIdent(DetailAST pAst)
Determine the text of the first direct IDENT child node.
|
static String |
getFullIdent(DetailAST pAst)
Determine the full identifier of the current element on the AST.
|
public static final Pattern NEVER_MATCH
@CheckForNull public static String getFirstIdent(@Nonnull DetailAST pAst)
pAst
- an ASTnull
if none was found@CheckForNull public static String getFullIdent(@Nonnull DetailAST pAst)
pAst
- an ASTnull
if no
identifier could be constructed