SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools



variableArgumentT(#id)

This fact marks a parameter in a method as a variable argument. The type of this parameter is always an array.

Supported since JTransformer 2.9.

Arguments

#id: paramT
ID of the parameter.

Sample Java Source


public void m(int... i)
{
...
}

Its PEF Representation

methodT(#method, #parent, m, [#param], type(basic, void, 0), [], #block),
paramT(#param, #method, type(basic, int, 1), i),
variableArgumentT(#param)

AST Specification

ast_relation_type_spec(variableArgumentT,[
     ast_arg(id,     mult(1,1,no ), id,   [paramT]) 
]).
research/jtransformer/api/java/pefs/4.2/variableargumentt.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019