Note: set implements an "append" semantics.
More...
Inherits org.lflang.target.property.TargetProperty< List< String >, UnionType >.
Inherited by org.lflang.target.property.CargoFeaturesProperty.
|
| Optional< Element > | astElementFromConfig (TargetConfig config) |
| boolean | checkType (KeyValuePair pair, MessageReporter reporter) |
| | If the given key-value pair does not match the type required by this target property, report an error through the given reporter.
|
| boolean | equals (Object obj) |
| | Return true if the given object is an instance of a class with the same name.
|
| List< String > | fromAst (Element node, MessageReporter reporter) |
| int | hashCode () |
| List< String > | initialValue () |
| boolean | loadFromFederate () |
| | Return true if this property is to be loaded from imported federates, false otherwise.
|
| boolean | loadFromFederation () |
| | Return true if this property is to be loaded by federates when specified at the level of the federation, false otherwise.
|
| boolean | loadFromImport () |
| | Return true if this property is to be loaded from imported files, false otherwise.
|
| abstract String | name () |
| | Return the name of this target property (in kebab case).
|
| final void | override (TargetConfig config, T value) |
| | Replace the value assigned to this target property in the given config with the given value.
|
| | StringListProperty () |
| Element | toAstElement (List< String > value) |
| abstract Element | toAstElement (T value) |
| | Return an AST node that represents this target property and the value currently assigned to it.
|
| String | toString () |
| void | update (TargetConfig config, List< String > value) |
| void | update (TargetConfig config, T value) |
| | Update the given configuration using the given value.
|
| void | validate (TargetConfig config, MessageReporter reporter) |
| | Override this method to implement additional checks.
|
|
| final S | type |
| | The type of values assignable to this target property.
|
Note: set implements an "append" semantics.
◆ StringListProperty()
| org.lflang.target.property.StringListProperty.StringListProperty |
( |
| ) |
|
◆ astElementFromConfig()
◆ checkType()
If the given key-value pair does not match the type required by this target property, report an error through the given reporter.
- Parameters
-
| pair | The ast node that matches this target property. |
| reporter | The reporter to issue an error through if the given key-value pair does not match the type required by this property. |
◆ equals()
Return true if the given object is an instance of a class with the same name.
- Parameters
-
| obj | The object to compare this instance to. |
◆ fromAst()
| List< String > org.lflang.target.property.StringListProperty.fromAst |
( |
Element | node, |
|
|
MessageReporter | reporter ) |
◆ fromJSON()
Return a value based on the given JSON element.
- Parameters
-
| element | The JSON element to produce a value from/ |
| reporter | A message reporter for reporting issues. |
◆ fromString()
| List< String > org.lflang.target.property.StringListProperty.fromString |
( |
String | string, |
|
|
MessageReporter | reporter ) |
|
protected |
◆ hashCode()
◆ initialValue()
| List< String > org.lflang.target.property.StringListProperty.initialValue |
( |
| ) |
|
◆ loadFromFederate()
Return true if this property is to be loaded from imported federates, false otherwise.
◆ loadFromFederation()
Return true if this property is to be loaded by federates when specified at the level of the federation, false otherwise.
◆ loadFromImport()
Return true if this property is to be loaded from imported files, false otherwise.
◆ name()
Return the name of this target property (in kebab case).
◆ override()
Replace the value assigned to this target property in the given config with the given value.
- Parameters
-
| config | The configuration to change. |
| value | The new value to assign. |
◆ toAstElement() [1/2]
| Element org.lflang.target.property.StringListProperty.toAstElement |
( |
List< String > | value | ) |
|
◆ toAstElement() [2/2]
Return an AST node that represents this target property and the value currently assigned to it.
◆ toString()
◆ update() [1/2]
| void org.lflang.target.property.StringListProperty.update |
( |
TargetConfig | config, |
|
|
List< String > | value ) |
◆ update() [2/2]
Update the given configuration using the given value.
The default implementation simply assigns the given value, overriding whatever value might have been assigned before.
- Parameters
-
| config | The configuration to update. |
| value | The value to perform the update with. |
◆ validate()
Override this method to implement additional checks.
The base implementation does nothing.
This method is meant to perform additional validation above and beyond checking target support and type checking which are done automatically.
- Parameters
-
| config | The target configuration to check against. |
| reporter | A reporter for reporting errors. |
◆ type
The type of values assignable to this target property.
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/target/property/StringListProperty.java