Top Description Inners Fields Constructors Methods
com.github.javaparser

public final Class Providers

extends Object
Class Inheritance
Imports
java.io.*, java.nio.charset.Charset, java.nio.file.Files, .Path

Factory for providers of source code for JavaParser. Providers that have no parameter for encoding but need it will use UTF-8.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
public static final Charset

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Provider
provider(Reader reader)

public static Provider
provider(InputStream input, Charset encoding)

public static Provider
public static Provider
provider(File file, Charset encoding)

public static Provider
provider(File file)

public static Provider
provider(Path path, Charset encoding)

public static Provider
provider(Path path)

public static Provider
provider(String source)

public static Provider
resourceProvider(ClassLoader classLoader, String pathToResource, Charset encoding)

Provide a Provider from the resource found in class loader with the provided encoding.

public static Provider
resourceProvider(String pathToResource, Charset encoding)

Provide a Provider from the resource found in the current class loader with the provided encoding.

public static Provider
resourceProvider(String pathToResource)

Provide a Provider from the resource found in the current class loader with UTF-8 encoding.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UTF8back to summary
public static final Charset UTF8

Constructor Detail

Providersback to summary
private Providers()

Method Detail

providerback to summary
public static Provider provider(Reader reader)
providerback to summary
public static Provider provider(InputStream input, Charset encoding)
providerback to summary
public static Provider provider(InputStream input)
providerback to summary
public static Provider provider(File file, Charset encoding) throws FileNotFoundException
providerback to summary
public static Provider provider(File file) throws FileNotFoundException
providerback to summary
public static Provider provider(Path path, Charset encoding) throws IOException
providerback to summary
public static Provider provider(Path path) throws IOException
providerback to summary
public static Provider provider(String source)
resourceProviderback to summary
public static Provider resourceProvider(ClassLoader classLoader, String pathToResource, Charset encoding) throws IOException

Provide a Provider from the resource found in class loader with the provided encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource

resourceProviderback to summary
public static Provider resourceProvider(String pathToResource, Charset encoding) throws IOException

Provide a Provider from the resource found in the current class loader with the provided encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource

resourceProviderback to summary
public static Provider resourceProvider(String pathToResource) throws IOException

Provide a Provider from the resource found in the current class loader with UTF-8 encoding.
As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource

com.github.javaparser back to summary

public Interface Providers.PreProcessor


Method Summary

Modifier and TypeMethod and Description
public Provider
process(Provider innerProvider)

Method Detail

processback to summary
public Provider process(Provider innerProvider)