Annotation Interface ModelItem
An annotation describing how this model item is mapped in an S-expression
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThis is the class to use by default when the mapper is looking for a particular type of classbooleanWhen an enum starts an expression, the expression for that enum may or may not be needed to create the class.booleanIf true, this item should be created to hold a double constantbooleanIf true, when this item is matched it is the start of an expression whose type is the parent class of this item (usually used for enum values within a class)booleanIf true, this item should be created to hold an int constantbooleanIf true, this item should be created to hold a string constantbooleanIf true, this item should be created to hold a symbolThe s-expression symbol that indicates the start of this itemintIf an item constructor has a vararg constructor that should be used, set this to true
-
Element Details
-
symbol
String symbolThe s-expression symbol that indicates the start of this item- Returns:
- The default symbol for this item (empty means none)
- Default:
""
-
isIntConstant
boolean isIntConstantIf true, this item should be created to hold an int constant- Returns:
- True if this item should be created to hold an int constant
- Default:
false
-
isDoubleConstant
boolean isDoubleConstantIf true, this item should be created to hold a double constant- Returns:
- True if this item should be created to hold a double constant
- Default:
false
-
isStringConstant
boolean isStringConstantIf true, this item should be created to hold a string constant- Returns:
- True if this item should be created to hold a string constant
- Default:
false
-
isSymbolExpr
boolean isSymbolExprIf true, this item should be created to hold a symbol- Returns:
- True if this item should be created to hold a symbol
- Default:
false
-
isExprStart
boolean isExprStartIf true, when this item is matched it is the start of an expression whose type is the parent class of this item (usually used for enum values within a class)- Returns:
- True if this item is the start of the expression for its parent class
- Default:
false
-
defaultForClass
Class defaultForClassThis is the class to use by default when the mapper is looking for a particular type of class- Returns:
- The class that this item is the default for
- Default:
java.lang.Object.class
-
includeStartSymbol
boolean includeStartSymbolWhen an enum starts an expression, the expression for that enum may or may not be needed to create the class. This indicates whether to include it.- Returns:
- True if the first symbol matched for this item should be included
- Default:
false
-
varargStart
int varargStartIf an item constructor has a vararg constructor that should be used, set this to true- Returns:
- True if the item has a vararg constructor
- Default:
-1
-