Package org.jboss.jdeparser
Interface JArrayExpr
-
- All Superinterfaces:
JExpr
- All Known Implementing Classes:
NewUndimJArrayExpr
,PlainJArrayExpr
public interface JArrayExpr extends JExpr
An array expression, which can have more values added to it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JArrayExpr
add(JExpr value)
Add an element to this array.int
elementCount()
Get the current number of elements added to this array.-
Methods inherited from interface org.jboss.jdeparser.JExpr
_instanceof, _instanceof, _instanceof, _new, _new, _new, _newAnon, _newAnon, _newAnon, $v, and, band, bor, bxor, call, cast, cast, cast, comp, cond, div, eq, field, ge, gt, idx, idx, le, length, lshr, lt, minus, mod, ne, neg, not, or, paren, plus, shl, shr, times
-
-
-
-
Method Detail
-
add
JArrayExpr add(JExpr value)
Add an element to this array. Returns this array.- Parameters:
value
- the value to add- Returns:
- this array expression
-
elementCount
int elementCount()
Get the current number of elements added to this array.- Returns:
- the number of elements
-
-