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 JArrayExpradd(JExpr value)Add an element to this array.intelementCount()Get the current number of elements added to this array.voidwrite(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:JArrayExprAdd an element to this array. Returns this array.- Specified by:
addin interfaceJArrayExpr- Parameters:
value- the value to add- Returns:
- this array expression
-
elementCount
public int elementCount()
Description copied from interface:JArrayExprGet the current number of elements added to this array.- Specified by:
elementCountin interfaceJArrayExpr- Returns:
- the number of elements
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
-
-