public class TypeLoader extends Object
| Modifier | Constructor and Description |
|---|---|
|
TypeLoader(Collection<File> includes,
Parser parser)
Construct a type loader for file types matches with the given parser.
|
protected |
TypeLoader(Collection<File> includes,
Parser parser,
TypeRegistry registry,
DocumentConverter converter)
Constructor with injected functionality.
|
| Modifier and Type | Method and Description |
|---|---|
TypeRegistry |
getRegistry() |
CDocument |
load(File file)
Load a thrift definition from file including all it's dependencies.
|
Collection<ThriftDocument> |
loadedDocuments() |
public TypeLoader(Collection<File> includes, Parser parser)
includes - List of files with include path roots. For includes
search these in order.parser - The thrift file parser.protected TypeLoader(Collection<File> includes, Parser parser, TypeRegistry registry, DocumentConverter converter)
includes - List of files with include path roots. For includes
search these in order.parser - The thrift file parser.registry - The type registry.converter - The document converterpublic Collection<ThriftDocument> loadedDocuments()
public CDocument load(File file) throws IOException, ParseException
IOExceptionParseExceptionpublic TypeRegistry getRegistry()
Copyright © 2016. All rights reserved.