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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an element to this array.int
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 Details
-
members
-
-
Constructor Details
-
PlainJArrayExpr
PlainJArrayExpr() -
PlainJArrayExpr
PlainJArrayExpr(JExpr... members)
-
-
Method Details
-
add
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
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-