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 classPhi.MetasAccumulates all metas that should be attached to unphied XMIR.
-
Constructor Summary
Constructors Constructor Description Phi(String source)Ctor.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(String source)
Ctor.- Parameters:
source- PHI source code.
-
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 IOExceptionParse PHI expression to XMIR.- Returns:
- Parsed PHI to XMIR.
- Throws:
IOException- If fails to parse
-
-