Class FileSection
java.lang.Object
io.github.syst3ms.skriptparser.file.FileElement
io.github.syst3ms.skriptparser.file.FileSection
A class describing a section of a script inside a file (e.g a line ending with a colon and containing all the lines that
were indented after it. "all the lines" doesn't exclude sections.
-
Constructor Summary
ConstructorsConstructorDescriptionFileSection(String fileName, int line, String content, List<FileElement> elements, int indentation) -
Method Summary
Methods inherited from class FileElement
getFileName, getIndentation, getLine, getLineContent
-
Constructor Details
-
FileSection
public FileSection(String fileName, int line, String content, List<FileElement> elements, int indentation)
-
-
Method Details
-
getElements
Returns the elements inside of the section- Returns:
- the elements inside of the section
-
length
public int length() -
get
-
equals
- Overrides:
equalsin classFileElement
-
toString
- Overrides:
toStringin classFileElement
-