类 ProtobufIDLProxy
java.lang.Object
com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy
This class is for dynamic create protobuf utility class directly from .proto file
- 从以下版本开始:
- 1.0.2
- 作者:
- xiemalin
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected static voidcheckDirectory(boolean generateSouceOnly, File sourceOutputDir) Check directory.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> create(File file, boolean debug, File path, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass) Creates the.static Map<String,IDLProxyObject> create(File file, boolean debug, File path, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass, boolean isUniName) Creates the.static Map<String,IDLProxyObject> create(InputStream is) Creates the.static Map<String,IDLProxyObject> create(InputStream is, boolean debug) Creates the.static Map<String,IDLProxyObject> create(InputStream is, boolean debug, boolean isUniName) Creates the.static Map<String,IDLProxyObject> create(InputStream is, boolean debug, File path) Creates the.static Map<String,IDLProxyObject> create(InputStream is, boolean debug, File path, boolean isUniName) Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static Map<String,IDLProxyObject> Creates the.static IDLProxyObjectCreates the single.static IDLProxyObjectcreateSingle(InputStream is, boolean debug) Creates the single.static IDLProxyObjectcreateSingle(InputStream is, boolean debug, boolean isUniName) Creates the single.static IDLProxyObjectcreateSingle(InputStream is, boolean debug, File path) Creates the single.static IDLProxyObjectcreateSingle(InputStream is, boolean debug, File path, boolean isUniName) Creates the single.static IDLProxyObjectcreateSingle(Reader reader) Creates the single.static IDLProxyObjectcreateSingle(Reader reader, boolean debug) Creates the single.static IDLProxyObjectcreateSingle(Reader reader, boolean debug, boolean isUniName) Creates the single.static IDLProxyObjectcreateSingle(Reader reader, boolean debug, File path) Creates the single.static IDLProxyObjectcreateSingle(Reader reader, boolean debug, File path, boolean isUniName) Creates the single.static IDLProxyObjectcreateSingle(String data) Creates the single.static IDLProxyObjectcreateSingle(String data, boolean debug) Creates the single.static IDLProxyObjectcreateSingle(String data, boolean debug, boolean isUniName) Creates the single.static IDLProxyObjectcreateSingle(String data, boolean debug, File path) Creates the single.static IDLProxyObjectcreateSingle(String data, boolean debug, File path, boolean isUniName) Creates the single.static voidgenerateSource(File file, File sourceOutputPath) Generate source.static voidgenerateSource(File file, File sourceOutputPath, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass) Generate source.static voidgenerateSource(InputStream is, File sourceOutputPath) Generate source.static voidgenerateSource(Reader reader, File sourceOutputPath) Generate source.static voidgenerateSource(String data, File sourceOutputPath) Generate source.static voidsetFormatJavaField(boolean needFormatJavaField) Sets the Constant formatJavaField.
-
字段详细资料
-
DEFAULT_FILE_NAME
default proto file name.- 另请参阅:
-
-
构造器详细资料
-
ProtobufIDLProxy
public ProtobufIDLProxy()
-
-
方法详细资料
-
setFormatJavaField
public static void setFormatJavaField(boolean needFormatJavaField) Sets the Constant formatJavaField.- 参数:
needFormatJavaField- the new Constant formatJavaField
-
checkDirectory
Check directory.- 参数:
generateSouceOnly- the generate souce onlysourceOutputDir- the source output dir
-
create
Creates the.- 参数:
file- the file- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(File file, boolean debug, boolean isUniName) throws IOException Creates the.- 参数:
file- the filedebug- the debugisUniName- the is uni name- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
Creates the.- 参数:
file- the filedebug- the debug- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(File file, boolean debug, File path) throws IOException Creates the.- 参数:
file- the filedebug- the debugpath- the path- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(File file, boolean debug, File path, boolean isUniName) throws IOException Creates the.- 参数:
file- the filedebug- the debugpath- the pathisUniName- the is uni name- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(File file, boolean debug, File path, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass) throws IOException Creates the.- 参数:
file- the filedebug- the debugpath- the pathcds- the cdscompiledClass- the compiled class- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(File file, boolean debug, File path, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass, boolean isUniName) throws IOException Creates the.- 参数:
file- the filedebug- the debugpath- the pathcds- the cdscompiledClass- the compiled classisUniName- the is uni name- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
Creates the.- 参数:
is- the is- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
Creates the.- 参数:
is- the isdebug- the debug- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(InputStream is, boolean debug, boolean isUniName) throws IOException Creates the.- 参数:
is- the isdebug- the debugisUniName- the is uni name- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(InputStream is, boolean debug, File path) throws IOException Creates the.- 参数:
is- the isdebug- the debugpath- the path- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(InputStream is, boolean debug, File path, boolean isUniName) throws IOException Creates the.- 参数:
is- the isdebug- the debugpath- the pathisUniName- the is uni name- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
Creates the.- 参数:
reader- the reader- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
Creates the.- 参数:
reader- the readerdebug- the debug- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(Reader reader, boolean debug, boolean isUniName) throws IOException Creates the.- 参数:
reader- the readerdebug- the debugisUniName- the is uni name- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(Reader reader, boolean debug, File path) throws IOException Creates the.- 参数:
reader- the readerdebug- the debugpath- the path- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
public static Map<String,IDLProxyObject> create(Reader reader, boolean debug, File path, boolean isUniName) throws IOException Creates the.- 参数:
reader- the readerdebug- the debugpath- the pathisUniName- the is uni name- 返回:
- the map
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
create
Creates the.- 参数:
data- the data- 返回:
- the map
-
create
Creates the.- 参数:
data- the datadebug- the debug- 返回:
- the map
-
create
Creates the.- 参数:
data- the datadebug- the debugisUniName- the is uni name- 返回:
- the map
-
create
Creates the.- 参数:
data- the datadebug- the debugpath- the path- 返回:
- the map
-
create
public static Map<String,IDLProxyObject> create(String data, boolean debug, File path, boolean isUniName) Creates the.- 参数:
data- the datadebug- the debugpath- the pathisUniName- the is uni name- 返回:
- the map
-
createSingle
Creates the single.- 参数:
is- the is- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
Creates the single.- 参数:
is- the isdebug- the debug- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
public static IDLProxyObject createSingle(InputStream is, boolean debug, boolean isUniName) throws IOException Creates the single.- 参数:
is- the isdebug- the debugisUniName- the is uni name- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
public static IDLProxyObject createSingle(InputStream is, boolean debug, File path) throws IOException Creates the single.- 参数:
is- the isdebug- the debugpath- the path- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
public static IDLProxyObject createSingle(InputStream is, boolean debug, File path, boolean isUniName) throws IOException Creates the single.- 参数:
is- the isdebug- the debugpath- the pathisUniName- the is uni name- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
Creates the single.- 参数:
reader- the reader- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
Creates the single.- 参数:
reader- the readerdebug- the debug- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
public static IDLProxyObject createSingle(Reader reader, boolean debug, boolean isUniName) throws IOException Creates the single.- 参数:
reader- the readerdebug- the debugisUniName- the is uni name- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
public static IDLProxyObject createSingle(Reader reader, boolean debug, File path) throws IOException Creates the single.- 参数:
reader- the readerdebug- the debugpath- the path- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
public static IDLProxyObject createSingle(Reader reader, boolean debug, File path, boolean isUniName) throws IOException Creates the single.- 参数:
reader- the readerdebug- the debugpath- the pathisUniName- the is uni name- 返回:
- the IDL proxy object
- 抛出:
IOException- Signals that an I/O exception has occurred.
-
createSingle
Creates the single.- 参数:
data- the data- 返回:
- the IDL proxy object
-
createSingle
Creates the single.- 参数:
data- the datadebug- the debug- 返回:
- the IDL proxy object
-
createSingle
Creates the single.- 参数:
data- the datadebug- the debugisUniName- set true will create a unique different class name- 返回:
- the IDL proxy object
-
createSingle
Creates the single.- 参数:
data- the datadebug- the debugpath- the path- 返回:
- the IDL proxy object
-
createSingle
Creates the single.- 参数:
data- the datadebug- the debugpath- the pathisUniName- the is uni name- 返回:
- the IDL proxy object
-
generateSource
Generate source.- 参数:
file- the filesourceOutputPath- the source output path- 抛出:
IOException- Signals that an I/O exception has occurred.
-
generateSource
public static void generateSource(File file, File sourceOutputPath, List<com.baidu.bjf.remoting.protobuf.ProtobufIDLProxy.CodeDependent> cds, Set<String> compiledClass) throws IOException Generate source.- 参数:
file- the filesourceOutputPath- the source output pathcds- the cdscompiledClass- the compiled class- 抛出:
IOException- Signals that an I/O exception has occurred.
-
generateSource
Generate source.- 参数:
is- the issourceOutputPath- the source output path- 抛出:
IOException- Signals that an I/O exception has occurred.
-
generateSource
Generate source.- 参数:
reader- the readersourceOutputPath- the source output path- 抛出:
IOException- Signals that an I/O exception has occurred.
-
generateSource
Generate source.- 参数:
data- the datasourceOutputPath- the source output path
-