Package org.eolang.jeo
Class Representation.Named
- java.lang.Object
-
- org.eolang.jeo.Representation.Named
-
- All Implemented Interfaces:
Representation
- Enclosing interface:
- Representation
public static class Representation.Named extends Object implements Representation
Named representation.- Since:
- 0.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.jeo.Representation
Representation.Named
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Name of the class or an object.byte[]
toBytecode()
Convert to bytecode.com.jcabi.xml.XML
toEO()
Convert to EOlang XML representation (XMIR).
-
-
-
Constructor Detail
-
Named
public Named(String name)
Constructor.- Parameters:
name
- Name of representation.
-
-
Method Detail
-
name
public String name()
Description copied from interface:Representation
Name of the class or an object.- Specified by:
name
in interfaceRepresentation
- Returns:
- Name.
-
toEO
public com.jcabi.xml.XML toEO()
Description copied from interface:Representation
Convert to EOlang XML representation (XMIR).- Specified by:
toEO
in interfaceRepresentation
- Returns:
- XML.
-
toBytecode
public byte[] toBytecode()
Description copied from interface:Representation
Convert to bytecode.- Specified by:
toBytecode
in interfaceRepresentation
- Returns:
- Array of bytes.
-
-