Semantics : JavaAllocator

JavaAllocator  ::=  new java ::
( JavaPrimitiveTypes | JavaClassName | CONST_NAME | : IDENTIFIER )
( Arguments )? | ( [> )+ JavaArrayAllocator | ( [> ] )+ )

Used by:  

Creates a new Java object or Java array. The Java class name can be specified as-is, or in a constant or a variable. Since the variable name may be confused to be the class name itself, a : must precede a variable name. If creating a Java object with its default constructor, no ( ) pair is needed. For others, just pass the parameters as any function calls.

Java arrays can be created with [> and initializers. Arrays must be initialized for dimensions and sizes.