Package org.variantsync.boosting.parsing
Class LineAST
java.lang.Object
org.variantsync.boosting.parsing.AbstractAST
org.variantsync.boosting.parsing.LineAST
- All Implemented Interfaces:
 Serializable
- Direct Known Subclasses:
 CAST
Represents a node in the Abstract Syntax Tree (AST) that represents a line of
 code in a file.
 This class extends AbstractAST and provides functionality to visit the
 content of a file and create
 AST nodes for each line in the file.
- See Also:
 
- 
Field Summary
Fields inherited from class org.variantsync.boosting.parsing.AbstractAST
astNodes, fileTypes, root - 
Constructor Summary
ConstructorsConstructorDescriptionConstructs a LineAST object with the specified root file and file types.Constructs a LineAST object with the specified file types.LineAST(ASTNode root, CustomHashSet<ASTNode> astNodes, String... fileTypes) Constructs a LineAST object with the specified root node, AST nodes, and file types. - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidvisitFileContent(ASTNode fileNode, File fileToVisit) This method is used to visit the content of a file and create an AST node for each line in the file.Methods inherited from class org.variantsync.boosting.parsing.AbstractAST
collectAstNodes, getAstNodes, getRoot 
- 
Constructor Details
- 
LineAST
Constructs a LineAST object with the specified file types.- Parameters:
 fileTypes- the file types to be used for parsing
 - 
LineAST
Constructs a LineAST object with the specified root file and file types.- Parameters:
 rootFile- the root file to start parsing fromfileTypes- the file types to be used for parsing
 - 
LineAST
Constructs a LineAST object with the specified root node, AST nodes, and file types.- Parameters:
 root- the root node of the ASTastNodes- the set of AST nodesfileTypes- the file types to be used for parsing
 
 - 
 - 
Method Details
- 
visitFileContent
This method is used to visit the content of a file and create an AST node for each line in the file.- Specified by:
 visitFileContentin classAbstractAST- Parameters:
 fileNode- The ASTNode representing the file being visitedfileToVisit- The File object representing the file to be visited- Throws:
 UncheckedIOException- If an IOException occurs while reading the file
 
 -