Package org.eolang.opeo.ast
Class Literal
- java.lang.Object
-
- org.eolang.opeo.ast.Literal
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.opeo.ast.AstNode
AstNode.Empty
-
-
Constructor Summary
Constructors Constructor Description Literal()Constructor.Literal(boolean value)Constructor.Literal(byte value)Constructor.Literal(char value)Constructor.Literal(double value)Constructor.Literal(float value)Constructor.Literal(int value)Constructor.Literal(long value)Constructor.Literal(short value)Constructor.Literal(Object value)Constructor.Literal(Object value, org.objectweb.asm.Type type)Constructor.Literal(org.eolang.jeo.representation.xmir.XmlNode node)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AstNode>opcodes()Bytecode instructions.Iterable<org.xembly.Directive>toXmir()Convert node to XMIR.org.objectweb.asm.Typetype()Node type.Objectvalue()
-
-
-
Constructor Detail
-
Literal
public Literal()
Constructor. Null literal.
-
Literal
public Literal(char value)
Constructor.- Parameters:
value- Char literal value.
-
Literal
public Literal(boolean value)
Constructor.- Parameters:
value- Boolean literal value.
-
Literal
public Literal(byte value)
Constructor.- Parameters:
value- Byte literal value.
-
Literal
public Literal(short value)
Constructor.- Parameters:
value- Short literal value.
-
Literal
public Literal(int value)
Constructor.- Parameters:
value- Integer literal value.
-
Literal
public Literal(long value)
Constructor.- Parameters:
value- Long literal value.
-
Literal
public Literal(float value)
Constructor.- Parameters:
value- Float literal value.
-
Literal
public Literal(double value)
Constructor.- Parameters:
value- Double literal value.
-
Literal
public Literal(org.eolang.jeo.representation.xmir.XmlNode node)
Constructor.- Parameters:
node- XML node.
-
Literal
public Literal(Object value)
Constructor.- Parameters:
value- Literal value.
-
Literal
public Literal(Object value, org.objectweb.asm.Type type)
Constructor.- Parameters:
value- Literal value.type- Literal type.
-
-
Method Detail
-
toXmir
public Iterable<org.xembly.Directive> toXmir()
Description copied from interface:XmirConvert node to XMIR.
-
opcodes
public List<AstNode> opcodes()
Description copied from interface:AstNodeBytecode instructions.
-
type
public org.objectweb.asm.Type type()
Description copied from interface:TypedNode type.
-
value
public Object value()
-
-