io.sarl.lang.compiler
Class GeneratorConfig2
class GeneratorConfig2
extends java.lang.Object
Configuration for the SARL generator.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.4
Property Summary
Modifier and type Property and description
java.lang.String generatedTestSourceFolder
Replies the folder in which the generated test source in written.
Field Summary
Modifier and type Field and description
public static val boolean DEFAULT_GENERATE_CLONE_FUNCTION
Default value for the generation flag of the clone function.
public static val boolean DEFAULT_GENERATE_EQUALITY_TEST_FUNCTIONS
Default value for the generation flag of the equality test functions.
public static val boolean DEFAULT_GENERATE_INLINE_ANNOTATION
Default value for the generation of the inline annotation flag.
public static val boolean DEFAULT_GENERATE_PURE_ANNOTATION
Default value for the generation flag of the pure annotations.
public static val boolean DEFAULT_GENERATE_SERIAL_NUMBER_FIELD
Default value for the generation flag of the serial number field.
public static val boolean DEFAULT_GENERATE_TOSTRING_FUNCTION
Default value for the generation flag of the toString function.
public static val boolean DEFAULT_USE_EXPRESSION_INTERPRETER_FOR_INLINE_ANNOTATION
Default value for the flag that indicates if the expression interpreter should be used when generating inline annotations.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
java.lang.String getGeneratedTestSourceFolder
Replies the folder in which the generated test source in written.
boolean isGenerateCloneFunctions
Replies if the clone functions shall be generated.
boolean isGenerateEqualityTestFunctions
Replies if the equality test functions shall be generated.
boolean isGenerateInlineAnnotation
Replies if the @Inline shall be generated.
boolean isGeneratePureAnnotation
Replies if the @Pure shall be generated.
boolean isGenerateSerialNumberFields
Replies if the serial number field shall be generated.
boolean isGenerateToStringFunctions
Replies if the toString functions shall be generated.
boolean isUseExpressionInterpreterForInlineAnnotation
Replies if constant expression interpreter shall be called for generated @Inline.
void setGenerateCloneFunctions(boolean)
Set if the clone functions shall be generated.
void setGeneratedTestSourceFolder(String)
Set the folder in which the generated test source in written.
void setGenerateEqualityTestFunctions(boolean)
Set if the equality test functions shall be generated.
void setGenerateInlineAnnotation(boolean)
Set if the @Inline shall be generated.
void setGeneratePureAnnotation(boolean)
Set if the @Pure shall be generated.
void setGenerateSerialNumberFields(boolean)
Set if the clone functions shall be generated.
void setGenerateToStringFunctions(boolean)
Set if the toString functions shall be generated.
void setUseExpressionInterpreterForInlineAnnotation(boolean)
Set if the constant expression interpreter shall be called for generated @Inline.
Property Details
generatedTestSourceFolder
var generatedTestSourceFolder : java.lang.String
Replies the folder in which the generated test source in written.

This property is an alias for the action: getGeneratedTestSourceFolder

Returns:
the name of the folder.
Since:
0.8
Field Details
DEFAULT_GENERATE_CLONE_FUNCTION
public static val DEFAULT_GENERATE_CLONE_FUNCTION : boolean = true
Default value for the generation flag of the clone function.
Since:
0.8
DEFAULT_GENERATE_EQUALITY_TEST_FUNCTIONS
public static val DEFAULT_GENERATE_EQUALITY_TEST_FUNCTIONS : boolean = true
Default value for the generation flag of the equality test functions.
Since:
0.8
DEFAULT_GENERATE_INLINE_ANNOTATION
public static val DEFAULT_GENERATE_INLINE_ANNOTATION : boolean = false
Default value for the generation of the inline annotation flag.
Since:
0.8
DEFAULT_GENERATE_PURE_ANNOTATION
public static val DEFAULT_GENERATE_PURE_ANNOTATION : boolean = true
Default value for the generation flag of the pure annotations.
Since:
0.8
DEFAULT_GENERATE_SERIAL_NUMBER_FIELD
public static val DEFAULT_GENERATE_SERIAL_NUMBER_FIELD : boolean = true
Default value for the generation flag of the serial number field.
Since:
0.8
DEFAULT_GENERATE_TOSTRING_FUNCTION
public static val DEFAULT_GENERATE_TOSTRING_FUNCTION : boolean = true
Default value for the generation flag of the toString function.
Since:
0.8
DEFAULT_USE_EXPRESSION_INTERPRETER_FOR_INLINE_ANNOTATION
public static val DEFAULT_USE_EXPRESSION_INTERPRETER_FOR_INLINE_ANNOTATION : boolean = true
Default value for the flag that indicates if the expression interpreter should be used when generating inline annotations.
Since:
0.8
Constructor Details
new
new
Action Details
getGeneratedTestSourceFolder
def getGeneratedTestSourceFolder : java.lang.String
Replies the folder in which the generated test source in written.
Returns:
the name of the folder.
Since:
0.8
isGenerateCloneFunctions
def isGenerateCloneFunctions : boolean
Replies if the clone functions shall be generated.
Returns:
true if the functions shall be generated.
Since:
0.8
isGenerateEqualityTestFunctions
def isGenerateEqualityTestFunctions : boolean
Replies if the equality test functions shall be generated.
Returns:
true if the functions shall be generated.
Since:
0.8
isGenerateInlineAnnotation
def isGenerateInlineAnnotation : boolean
Replies if the @Inline shall be generated.
Returns:
true if annotation shall be generated.
isGeneratePureAnnotation
def isGeneratePureAnnotation : boolean
Replies if the @Pure shall be generated.
Returns:
true if annotation shall be generated.
isGenerateSerialNumberFields
def isGenerateSerialNumberFields : boolean
Replies if the serial number field shall be generated.
Returns:
true if the functions shall be generated.
Since:
0.8
isGenerateToStringFunctions
def isGenerateToStringFunctions : boolean
Replies if the toString functions shall be generated.
Returns:
true if the functions shall be generated.
Since:
0.8
isUseExpressionInterpreterForInlineAnnotation
def isUseExpressionInterpreterForInlineAnnotation : boolean
Replies if constant expression interpreter shall be called for generated @Inline.
Returns:
true if annotation shall be generated.
setGenerateCloneFunctions(boolean)
def setGenerateCloneFunctions(boolean)
Set if the clone functions shall be generated.
Parameters:
generateFunctions - true if functions shall be generated.
Since:
0.8
setGeneratedTestSourceFolder(String)
def setGeneratedTestSourceFolder(String)
Set the folder in which the generated test source in written.
Parameters:
folder - the name of the folder.
Since:
0.8
setGenerateEqualityTestFunctions(boolean)
def setGenerateEqualityTestFunctions(boolean)
Set if the equality test functions shall be generated.
Parameters:
generateFunctions - true if functions shall be generated.
Since:
0.8
setGenerateInlineAnnotation(boolean)
def setGenerateInlineAnnotation(boolean)
Set if the @Inline shall be generated.
Parameters:
generateInlineAnnotation - true if annotation shall be generated.
setGeneratePureAnnotation(boolean)
def setGeneratePureAnnotation(boolean)
Set if the @Pure shall be generated.
Parameters:
generatePureAnnotation - true if annotation shall be generated.
setGenerateSerialNumberFields(boolean)
def setGenerateSerialNumberFields(boolean)
Set if the clone functions shall be generated.
Parameters:
generateFields - true if fields shall be generated.
Since:
0.8
setGenerateToStringFunctions(boolean)
def setGenerateToStringFunctions(boolean)
Set if the toString functions shall be generated.
Parameters:
generateFunctions - true if functions shall be generated.
Since:
0.8
setUseExpressionInterpreterForInlineAnnotation(boolean)
def setUseExpressionInterpreterForInlineAnnotation(boolean)
Set if the constant expression interpreter shall be called for generated @Inline.
Parameters:
generateInlineAnnotation - true if annotation shall be generated.