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.intGet the current number of elements added to this array.voidwrite(SourceFileWriter writer) Methods inherited from class 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, timesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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: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
- Specified by:
writein interfaceWritable- Throws:
IOException
-