lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.target.property.FileListProperty Class Referenceabstract

Inherits org.lflang.target.property.TargetProperty< List< String >, UnionType >.

Inherited by org.lflang.target.property.CmakeIncludeProperty, org.lflang.target.property.CmakeInitIncludeProperty, org.lflang.target.property.FilesProperty, and org.lflang.target.property.ProtobufsProperty.

Public Member Functions

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.
 FileListProperty ()
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 ()
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.
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.

Public Attributes

final S type
 The type of values assignable to this target property.

Protected Member Functions

List< String > fromAst (Element node, MessageReporter reporter)
fromJSON (JsonElement element, MessageReporter reporter)
 Return a value based on the given JSON element.
List< String > fromString (String string, MessageReporter reporter)

Constructor & Destructor Documentation

◆ FileListProperty()

org.lflang.target.property.FileListProperty.FileListProperty ( )

Member Function Documentation

◆ astElementFromConfig()

Optional< Element > org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.astElementFromConfig ( TargetConfig config)
inherited

◆ checkType()

boolean org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.checkType ( KeyValuePair pair,
MessageReporter reporter )
inherited

If the given key-value pair does not match the type required by this target property, report an error through the given reporter.

Parameters
pairThe ast node that matches this target property.
reporterThe reporter to issue an error through if the given key-value pair does not match the type required by this property.

◆ equals()

boolean org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.equals ( Object obj)
inherited

Return true if the given object is an instance of a class with the same name.

Parameters
objThe object to compare this instance to.

◆ fromAst()

List< String > org.lflang.target.property.FileListProperty.fromAst ( Element node,
MessageReporter reporter )
protected

◆ fromJSON()

T org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.fromJSON ( JsonElement element,
MessageReporter reporter )
protectedinherited

Return a value based on the given JSON element.

Parameters
elementThe JSON element to produce a value from/
reporterA message reporter for reporting issues.

◆ fromString()

List< String > org.lflang.target.property.FileListProperty.fromString ( String string,
MessageReporter reporter )
protected

◆ hashCode()

int org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.hashCode ( )
inherited

◆ initialValue()

List< String > org.lflang.target.property.FileListProperty.initialValue ( )

◆ loadFromFederate()

boolean org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.loadFromFederate ( )
inherited

Return true if this property is to be loaded from imported federates, false otherwise.

◆ loadFromFederation()

boolean org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.loadFromFederation ( )
inherited

Return true if this property is to be loaded by federates when specified at the level of the federation, false otherwise.

◆ loadFromImport()

boolean org.lflang.target.property.FileListProperty.loadFromImport ( )

◆ name()

abstract String org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.name ( )
abstractinherited

Return the name of this target property (in kebab case).

◆ override()

final void org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.override ( TargetConfig config,
T value )
inherited

Replace the value assigned to this target property in the given config with the given value.

Parameters
configThe configuration to change.
valueThe new value to assign.

◆ toAstElement() [1/2]

Element org.lflang.target.property.FileListProperty.toAstElement ( List< String > value)

◆ toAstElement() [2/2]

abstract Element org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.toAstElement ( T value)
abstractinherited

Return an AST node that represents this target property and the value currently assigned to it.

◆ toString()

String org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.toString ( )
inherited

◆ update() [1/2]

void org.lflang.target.property.FileListProperty.update ( TargetConfig config,
List< String > value )

◆ update() [2/2]

void org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.update ( TargetConfig config,
T value )
inherited

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
configThe configuration to update.
valueThe value to perform the update with.

◆ validate()

void org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.validate ( TargetConfig config,
MessageReporter reporter )
inherited

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
configThe target configuration to check against.
reporterA reporter for reporting errors.

Member Data Documentation

◆ type

final S org.lflang.target.property.TargetProperty< T, S extends TargetPropertyType >.type
inherited

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/FileListProperty.java