Package org.jboss.jdeparser
Class AbstractJAssignableExpr
java.lang.Object
org.jboss.jdeparser.AbstractJExpr
org.jboss.jdeparser.AbstractJAssignableExpr
- All Implemented Interfaces:
JAssignableExpr
,JCommentable
,JExpr
,JStatement
,Writable
- Direct Known Subclasses:
ArrayLookupJExpr
,FieldRefJExpr
,NameJExpr
,StaticRefJExpr
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCombine this expression with another using the binary+=
operator.Combine this expression with another using the binary&=
operator.Combine this expression with another using the binary=
operator.Add a block comment.private BasicJCommentable
Combine this expression with another using the binary/=
operator.Add a line comment.lshrAssign
(JExpr e1) Combine this expression with another using the binary>>>=
operator.Combine this expression with another using the binary%=
operator.Combine this expression with another using the binary*=
operator.Combine this expression with another using the binary|=
operator.postDec()
Apply the postfix--
operator to this expression.postInc()
Apply the postfix++
operator to this expression.preDec()
Apply the prefix--
operator to this expression.preInc()
Apply the prefix++
operator to this expression.Combine this expression with another using the binary<<=
operator.Combine this expression with another using the binary>>=
operator.Combine this expression with another using the binary-=
operator.Combine this expression with another using the binary^=
operator.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
-
commentable
-
-
Constructor Details
-
AbstractJAssignableExpr
protected AbstractJAssignableExpr(int prec)
-
-
Method Details
-
preDec
Description copied from interface:JAssignableExpr
Apply the prefix--
operator to this expression.- Specified by:
preDec
in interfaceJAssignableExpr
- Returns:
- the new expression
-
preInc
Description copied from interface:JAssignableExpr
Apply the prefix++
operator to this expression.- Specified by:
preInc
in interfaceJAssignableExpr
- Returns:
- the new expression
-
postDec
Description copied from interface:JAssignableExpr
Apply the postfix--
operator to this expression.- Specified by:
postDec
in interfaceJAssignableExpr
- Returns:
- the new expression
-
postInc
Description copied from interface:JAssignableExpr
Apply the postfix++
operator to this expression.- Specified by:
postInc
in interfaceJAssignableExpr
- Returns:
- the new expression
-
shlAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary<<=
operator.- Specified by:
shlAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
lshrAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary>>>=
operator.- Specified by:
lshrAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
shrAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary>>=
operator.- Specified by:
shrAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
xorAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary^=
operator.- Specified by:
xorAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
orAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary|=
operator.- Specified by:
orAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
andAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary&=
operator.- Specified by:
andAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
modAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary%=
operator.- Specified by:
modAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
divAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary/=
operator.- Specified by:
divAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
mulAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary*=
operator.- Specified by:
mulAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
subAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary-=
operator.- Specified by:
subAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
addAssign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary+=
operator.- Specified by:
addAssign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
assign
Description copied from interface:JAssignableExpr
Combine this expression with another using the binary=
operator.- Specified by:
assign
in interfaceJAssignableExpr
- Parameters:
e1
- the other expression- Returns:
- the combined expression
-
commentable
-
lineComment
Description copied from interface:JCommentable
Add a line comment.- Specified by:
lineComment
in interfaceJCommentable
- Returns:
- the line comment body
-
blockComment
Description copied from interface:JCommentable
Add a block comment.- Specified by:
blockComment
in interfaceJCommentable
- Returns:
- the block comment body
-