Semantics : Arguments

Arguments  ::=  ( ( {{ )? ( ( JavaPrimitiveTypes )? Expr ),* ( }} )? )

Used by:  

Arguments are used in function calls or thread startups.

In Java method calls, you can optionally cast a value to a Java primitive type, including String. For other objects, you can call the Java object's cast() method, although most of the time this is not needed.

Since functions and threads can take any number of parameters, it is possible to dynamically construct a paramter list in an arry. The ( { and } ) does just that. Any arrays (including linked-lists) passed in are expanded so that each element is a parameter; non-array parameters are taken as regular parameters; Java arrays are not expanded. This method does not apply to Java method calls.