Package org.eolang.parser
Class Phi
- java.lang.Object
-
- org.eolang.parser.Phi
-
public class Phi extends Object
Phi expression.- Since:
- 0.51.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Phi.Metas
Accumulates all metas that should be attached to unphied XMIR.
-
Constructor Summary
Constructors Constructor Description Phi(Path file)
Ctor.Phi(Path file, Iterable<org.xembly.Directive> metas)
Ctor.Phi(Path file, Set<String> metas)
Ctor.Phi(Supplier<String> name, Path file, Iterable<org.xembly.Directive> metas)
Ctor.Phi(Supplier<String> name, org.cactoos.Text source, Iterable<org.xembly.Directive> metas)
Ctor.Phi(org.cactoos.Text source)
Ctor.Phi(org.cactoos.Text source, Iterable<org.xembly.Directive> metas)
Ctor.Phi(org.cactoos.Text source, Set<String> metas)
Ctor.
-
-
-
Constructor Detail
-
Phi
public Phi(Path file)
Ctor.- Parameters:
file
- Source file
-
Phi
public Phi(Path file, Set<String> metas)
Ctor.- Parameters:
file
- Source filemetas
- Set of metas to add to result XMIR
-
Phi
public Phi(org.cactoos.Text source)
Ctor.- Parameters:
source
- PHI source code
-
Phi
public Phi(org.cactoos.Text source, Set<String> metas)
Ctor.- Parameters:
source
- PHI source codemetas
- Set of metas to add to result XMIR
-
Phi
public Phi(Path file, Iterable<org.xembly.Directive> metas)
Ctor.- Parameters:
file
- Source filemetas
- Extra metas to add after parsing
-
Phi
public Phi(org.cactoos.Text source, Iterable<org.xembly.Directive> metas)
Ctor.- Parameters:
source
- PHI source codemetas
- Extra metas to add after parsing
-
Phi
public Phi(Supplier<String> name, Path file, Iterable<org.xembly.Directive> metas)
Ctor.- Parameters:
name
- Program namefile
- Source filemetas
- Extra metas to add after parsing
-
-
Method Detail
-
unphi
public com.jcabi.xml.XML unphi() throws IOException
Parse PHI expression to XMIR.- Returns:
- Parsed PHI to XMIR.
- Throws:
IOException
- If fails to parse
-
-