Package org.eolang.opeo.ast
Class DynamicInvocation
- java.lang.Object
-
- org.eolang.opeo.ast.DynamicInvocation
-
public final class DynamicInvocation extends Object implements AstNode, Typed
Dynamic invocation.- Since:
- 0.5
- To do:
- #329:90min Add Unit Test To Test DynamicInvocation Arguments.
I added
arguments
field althogether with parsing and translation logic. But I didn't test this logic. We need to add unit tests for arguments parsing and translation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.opeo.ast.AstNode
AstNode.Empty
-
-
Constructor Summary
Constructors Constructor Description DynamicInvocation(String name, Handle factory, String descriptor, List<Object> arguments)
Constructor.DynamicInvocation(String name, Handle factory, String descriptor, List<Object> farguments, List<AstNode> arguments)
Constructor.DynamicInvocation(String name, Handle factory, Attributes attributes, List<Object> farguments, List<AstNode> arguments)
Constructor.DynamicInvocation(org.eolang.jeo.representation.xmir.XmlNode root)
Constructor.DynamicInvocation(org.eolang.jeo.representation.xmir.XmlNode root, List<org.eolang.jeo.representation.xmir.XmlNode> chldren, Parser parser)
Constructor.DynamicInvocation(org.eolang.jeo.representation.xmir.XmlNode root, Parser parser)
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.Type
type()
Node type.
-
-
-
Constructor Detail
-
DynamicInvocation
public DynamicInvocation(org.eolang.jeo.representation.xmir.XmlNode root)
Constructor.- Parameters:
root
- XMIR node to parse.
-
DynamicInvocation
public DynamicInvocation(org.eolang.jeo.representation.xmir.XmlNode root, Parser parser)
Constructor.- Parameters:
root
- XMIR node to parse.parser
- Parser to find AST nodes of children.
-
DynamicInvocation
public DynamicInvocation(org.eolang.jeo.representation.xmir.XmlNode root, List<org.eolang.jeo.representation.xmir.XmlNode> chldren, Parser parser)
Constructor. Added for efficiency to receive children nodes only once.- Parameters:
root
- XMIR node to parse.chldren
- XMIR node children.parser
- Parser to find AST nodes of children.
-
DynamicInvocation
public DynamicInvocation(String name, Handle factory, String descriptor, List<Object> arguments)
Constructor.- Parameters:
name
- Name of the method.factory
- Factory method reference.descriptor
- Method descriptor.arguments
- Factory method arguments.- Suppressed Checkstyle violations:
- ParameterNumberCheck (5 lines)
-
DynamicInvocation
public DynamicInvocation(String name, Handle factory, String descriptor, List<Object> farguments, List<AstNode> arguments)
Constructor.- Parameters:
name
- Name of the method.factory
- Factory method reference.descriptor
- Method descriptor.farguments
- Factory method arguments.arguments
- Dynamic invocation method arguments.- Suppressed Checkstyle violations:
- ParameterNumberCheck (5 lines)
-
DynamicInvocation
public DynamicInvocation(String name, Handle factory, Attributes attributes, List<Object> farguments, List<AstNode> arguments)
Constructor.- Parameters:
name
- Name of the method.factory
- Factory method reference.attributes
- Method attributes.farguments
- Factory method arguments.arguments
- Dynamic invocation arguments.- Suppressed Checkstyle violations:
- ParameterNumberCheck (5 lines)
-
-