code: public static Node parse(Class<?> clazz, String text) throws ParseException {
          return parse(clazz, text, true);
      }
docs: Parses any fragment of code and store the result into the subclass of
  {@link org.walkmod.javalang.ast.Node} defined. For example, if you need
  to parse a single method, the class must be
  {@link org.walkmod.javalang.ast.body.MethodDeclaration}. The result does
  NOT contain the location of the AST nodes.
  
  @param clazz
  the subclass of {@link org.walkmod.javalang.ast.Node}. The
  result will be instance of that class.
  @param text
  the fragment of code to parse.
  @return the partial abstract syntax tree (AST) produced.
  @throws ParseException
  when the code contains an invalid syntax.