org.apache.commons.jexl3
Interface JexlArithmetic.ArrayBuilder

All Known Implementing Classes:
ArrayBuilder
Enclosing class:
JexlArithmetic

public static interface JexlArithmetic.ArrayBuilder

Helper interface used when creating an array literal.

The default implementation creates an array and attempts to type it strictly.


Method Summary
 void add(Object value)
          Adds a literal to the array.
 Object create(boolean extended)
          Creates the actual "array" instance.
 

Method Detail

add

void add(Object value)
Adds a literal to the array.

Parameters:
value - the item to add

create

Object create(boolean extended)
Creates the actual "array" instance.

Parameters:
extended - true when the last argument is ', ...'
Returns:
the array


Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.