@ CheckForNull public static String getFirstIdent ( @ Nonnull final DetailAST pAst ) { String result = null ; DetailAST ast = pAst . findFirstToken ( TokenTypes . IDENT ) ; if ( ast != null ) { result = ast . getText ( ) ; } return result ; }
Determine the text of the first direct IDENT child node .