Package org.jboss.jdeparser
Class PlainJArrayExpr
- java.lang.Object
-
- org.jboss.jdeparser.AbstractJExpr
-
- org.jboss.jdeparser.PlainJArrayExpr
-
- All Implemented Interfaces:
JArrayExpr
,JExpr
,Writable
- Direct Known Subclasses:
NewUndimJArrayExpr
class PlainJArrayExpr extends AbstractJExpr implements JArrayExpr
-
-
Constructor Summary
Constructors Constructor Description PlainJArrayExpr()
PlainJArrayExpr(JExpr... members)
-
Method Summary
All Methods Instance Methods Concrete 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.void
write(SourceFileWriter writer)
-
Methods inherited from class org.jboss.jdeparser.AbstractJExpr
_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, of, or, paren, plus, prec, shl, shr, times
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
members
private java.util.ArrayList<JExpr> members
-
-
Constructor Detail
-
PlainJArrayExpr
PlainJArrayExpr()
-
PlainJArrayExpr
PlainJArrayExpr(JExpr... members)
-
-
Method Detail
-
add
public JArrayExpr add(JExpr value)
Description copied from interface:JArrayExpr
Add an element to this array. Returns this array.- Specified by:
add
in interfaceJArrayExpr
- Parameters:
value
- the value to add- Returns:
- this array expression
-
elementCount
public int elementCount()
Description copied from interface:JArrayExpr
Get the current number of elements added to this array.- Specified by:
elementCount
in interfaceJArrayExpr
- Returns:
- the number of elements
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
-
-