Package org.sonar.iac.docker.parser
Class DockerHeredocParser
- java.lang.Object
-
- com.sonar.sslr.api.typed.ActionParser<DockerTree>
-
- org.sonar.iac.docker.parser.DockerParser
-
- org.sonar.iac.docker.parser.DockerHeredocParser
-
- All Implemented Interfaces:
TreeParser<Tree>
public class DockerHeredocParser extends DockerParser
For parsing Heredoc blocks inside a Dockerfile an extended parser with a different grammar root rule is used. This parser takes care of the offset of the initial Heredoc in the Dockerfile itself. It provides an extended NodeBuilder which adjust the Heredoc tokens with the initial offset.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DockerHeredocParsercreate()DockerTreeparse(String source, TextPointer offset)-
Methods inherited from class org.sonar.iac.docker.parser.DockerParser
create, parse, parse
-
-
-
-
Method Detail
-
create
public static DockerHeredocParser create()
-
parse
public DockerTree parse(String source, TextPointer offset)
-
-