Forge - Parent 1.2.2-SNAPSHOT

org.jboss.forge.parser.spi
Interface JavaParserProvider

All Known Implementing Classes:
JavaParserImpl

public interface JavaParserProvider

Author:
Lincoln Baxter, III

Method Summary
<T extends JavaSource<?>>
T
create(Class<T> type)
          Create a new empty JavaClass instance.
 JavaSource<?> parse(char[] data)
          Parse the given character array into a new JavaSource instance.
<T extends JavaSource<?>>
T
parse(Class<T> type, char[] data)
          Read the given character array and parse its data into a new JavaSource instance of the given type.
<T extends JavaSource<?>>
T
parse(Class<T> type, File file)
          Read the given File and parse its data into a new JavaSource instance of the given type.
<T extends JavaSource<?>>
T
parse(Class<T> type, InputStream data)
          Read the given InputStream and parse its data into a new JavaSource instance of the given type.
<T extends JavaSource<?>>
T
parse(Class<T> type, String data)
          Read the given string and parse its data into a new JavaSource instance of the given type.
 JavaSource<?> parse(File file)
          Open the given File, parsing its contents into a new JavaSource instance.
 JavaSource<?> parse(InputStream data)
          Read the given InputStream and parse the data into a new JavaSource instance.
 JavaSource<?> parse(String data)
          Parse the given String data into a new JavaSource instance.
 

Method Detail

parse

JavaSource<?> parse(File file)
                    throws FileNotFoundException
Open the given File, parsing its contents into a new JavaSource instance.

Throws:
FileNotFoundException

parse

JavaSource<?> parse(InputStream data)
Read the given InputStream and parse the data into a new JavaSource instance.


parse

JavaSource<?> parse(char[] data)
Parse the given character array into a new JavaSource instance.


parse

JavaSource<?> parse(String data)
Parse the given String data into a new JavaSource instance.


create

<T extends JavaSource<?>> T create(Class<T> type)
Create a new empty JavaClass instance.


parse

<T extends JavaSource<?>> T parse(Class<T> type,
                                  File file)
                              throws FileNotFoundException
Read the given File and parse its data into a new JavaSource instance of the given type.

Throws:
FileNotFoundException

parse

<T extends JavaSource<?>> T parse(Class<T> type,
                                  InputStream data)
Read the given InputStream and parse its data into a new JavaSource instance of the given type.


parse

<T extends JavaSource<?>> T parse(Class<T> type,
                                  char[] data)
Read the given character array and parse its data into a new JavaSource instance of the given type.


parse

<T extends JavaSource<?>> T parse(Class<T> type,
                                  String data)
Read the given string and parse its data into a new JavaSource instance of the given type.


Forge - Parent 1.2.2-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.