| 限定符和类型 | 字段和说明 |
|---|---|
static String |
GOOGLE_PROTOBUF_ANY_DEF
The Constant GOOGLE_PROTOBUF_ANY_DEF.
|
| 构造器和说明 |
|---|
ProtobufIDLGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getIDL(Class<?> cls)
get IDL content from class.
|
static String |
getIDL(Class<?> cls,
Set<Class<?>> cachedTypes,
Set<Class<?>> cachedEnumTypes)
get IDL content from class.
|
static String |
getIDL(Class<?> cls,
Set<Class<?>> cachedTypes,
Set<Class<?>> cachedEnumTypes,
boolean ignoreJava)
get IDL content from class.
|
public static String getIDL(Class<?> cls, Set<Class<?>> cachedTypes, Set<Class<?>> cachedEnumTypes, boolean ignoreJava)
cls - target class to parse for IDL message.cachedTypes - if type already in set will not generate IDL. if a new type found will add to setcachedEnumTypes - if enum already in set will not generate IDL. if a new enum found will add to setignoreJava - set true to ignore generate package and class nameProtobufpublic static String getIDL(Class<?> cls, Set<Class<?>> cachedTypes, Set<Class<?>> cachedEnumTypes)
cls - target class to parse for IDL message.cachedTypes - if type already in set will not generate IDL. if a new type found will add to setcachedEnumTypes - if enum already in set will not generate IDL. if a new enum found will add to setProtobufCopyright © 2022 Baidu, Inc.. All rights reserved.