java.lang.Object
org.praxislive.project.ProjectElement
- Direct Known Subclasses:
ProjectElement.File,ProjectElement.Line
public abstract sealed class ProjectElement
extends Object
permits ProjectElement.File, ProjectElement.Line
Elements of a project.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA file element wrapping a file to be included.static final classA line element wrapping a single line of script. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectElement.FileCreate a file element wrapping the given file URI.static ProjectElement.FileCreate a file element wrapping the URI of the given file path.static ProjectElement.LineCreate a line element wrapping the given script line.
-
Constructor Details
-
ProjectElement
public ProjectElement()
-
-
Method Details
-
file
Create a file element wrapping the given file URI.- Parameters:
file- address of file- Returns:
- file element
-
file
Create a file element wrapping the URI of the given file path.- Parameters:
file- path of file- Returns:
- file element
-
line
Create a line element wrapping the given script line. The line must be a single line of script with a plain first token.- Parameters:
script- line of script- Returns:
- line element
- Throws:
IllegalArgumentException- if the line fails to parse according to the rules
-