Package io.protostuff.compiler
Class ProtoModule
java.lang.Object
io.protostuff.compiler.ProtoModule
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ProtoModule
Configuration for the proto w/c ontains the compile options and arguments.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Properties
static final String
private String
private String
static final boolean
true
for JDKs 9, 10, 11, etc;false
for 1.8 and below.private Properties
private String
private File
private CachingProtoLoader
private static final long
private File
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttrs()
Alias forgetAttributes()
.boolean
Determines if current runtime environment is JDK version 9 or above.void
setAttribute
(String key, Object value) void
setCachingProtoLoader
(CachingProtoLoader protoLoader) void
setEncoding
(String encoding) void
setGenerator
(String generator) Set current generator namevoid
void
setOptions
(Properties options) void
void
setOutputDir
(File outputDir) void
-
Field Details
-
DEFAULT_GENERATOR_NAME
- See Also:
-
JAVA_9_AND_ABOVE
public static final boolean JAVA_9_AND_ABOVEtrue
for JDKs 9, 10, 11, etc;false
for 1.8 and below. -
serialVersionUID
private static final long serialVersionUID- See Also:
-
source
-
output
-
encoding
-
outputDir
-
generator
-
options
-
config
Properties config -
protoLoader
-
attributes
-
-
Constructor Details
-
ProtoModule
public ProtoModule() -
ProtoModule
-
-
Method Details
-
getSource
- Returns:
- the source
-
setSource
- Parameters:
source
- the source to set
-
getOutput
- Returns:
- the output
-
setOutput
- Parameters:
output
- the output to set
-
isJavaVersion9
public boolean isJavaVersion9()Determines if current runtime environment is JDK version 9 or above. -
getGenerator
- Returns:
- the current generator name that can be used generated code for identification
-
setGenerator
Set current generator name- Parameters:
generator
- the generator name
-
getEncoding
- Returns:
- the encoding
-
setEncoding
- Parameters:
encoding
- the encoding to set
-
getOutputDir
- Returns:
- the outputDir
-
setOutputDir
- Parameters:
outputDir
- the outputDir to set
-
getOptions
- Returns:
- the options
-
setOptions
- Parameters:
options
-
-
getOption
-
setOption
-
getCachingProtoLoader
-
setCachingProtoLoader
-
getConfig
-
setAttribute
-
getAttrs
Alias forgetAttributes()
. -
getAttributes
-