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
abstract class AbstractJAssignableExpr extends AbstractJExpr implements JAssignableExpr
-
-
Field Summary
Fields Modifier and Type Field Description private BasicJCommentablecommentable
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJAssignableExpr(int prec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JExpraddAssign(JExpr e1)Combine this expression with another using the binary+=operator.JExprandAssign(JExpr e1)Combine this expression with another using the binary&=operator.JExprassign(JExpr e1)Combine this expression with another using the binary=operator.JCommentblockComment()Add a block comment.private BasicJCommentablecommentable()JExprdivAssign(JExpr e1)Combine this expression with another using the binary/=operator.JCommentlineComment()Add a line comment.JExprlshrAssign(JExpr e1)Combine this expression with another using the binary>>>=operator.JExprmodAssign(JExpr e1)Combine this expression with another using the binary%=operator.JExprmulAssign(JExpr e1)Combine this expression with another using the binary*=operator.JExprorAssign(JExpr e1)Combine this expression with another using the binary|=operator.JExprpostDec()Apply the postfix--operator to this expression.JExprpostInc()Apply the postfix++operator to this expression.JExprpreDec()Apply the prefix--operator to this expression.JExprpreInc()Apply the prefix++operator to this expression.JExprshlAssign(JExpr e1)Combine this expression with another using the binary<<=operator.JExprshrAssign(JExpr e1)Combine this expression with another using the binary>>=operator.JExprsubAssign(JExpr e1)Combine this expression with another using the binary-=operator.JExprxorAssign(JExpr e1)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 Detail
-
commentable
private BasicJCommentable commentable
-
-
Method Detail
-
preDec
public JExpr preDec()
Description copied from interface:JAssignableExprApply the prefix--operator to this expression.- Specified by:
preDecin interfaceJAssignableExpr- Returns:
- the new expression
-
preInc
public JExpr preInc()
Description copied from interface:JAssignableExprApply the prefix++operator to this expression.- Specified by:
preIncin interfaceJAssignableExpr- Returns:
- the new expression
-
postDec
public JExpr postDec()
Description copied from interface:JAssignableExprApply the postfix--operator to this expression.- Specified by:
postDecin interfaceJAssignableExpr- Returns:
- the new expression
-
postInc
public JExpr postInc()
Description copied from interface:JAssignableExprApply the postfix++operator to this expression.- Specified by:
postIncin interfaceJAssignableExpr- Returns:
- the new expression
-
shlAssign
public JExpr shlAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary<<=operator.- Specified by:
shlAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
lshrAssign
public JExpr lshrAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary>>>=operator.- Specified by:
lshrAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
shrAssign
public JExpr shrAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary>>=operator.- Specified by:
shrAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
xorAssign
public JExpr xorAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary^=operator.- Specified by:
xorAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
orAssign
public JExpr orAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary|=operator.- Specified by:
orAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
andAssign
public JExpr andAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary&=operator.- Specified by:
andAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
modAssign
public JExpr modAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary%=operator.- Specified by:
modAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
divAssign
public JExpr divAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary/=operator.- Specified by:
divAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
mulAssign
public JExpr mulAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary*=operator.- Specified by:
mulAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
subAssign
public JExpr subAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary-=operator.- Specified by:
subAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
addAssign
public JExpr addAssign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary+=operator.- Specified by:
addAssignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
assign
public JExpr assign(JExpr e1)
Description copied from interface:JAssignableExprCombine this expression with another using the binary=operator.- Specified by:
assignin interfaceJAssignableExpr- Parameters:
e1- the other expression- Returns:
- the combined expression
-
commentable
private BasicJCommentable commentable()
-
lineComment
public JComment lineComment()
Description copied from interface:JCommentableAdd a line comment.- Specified by:
lineCommentin interfaceJCommentable- Returns:
- the line comment body
-
blockComment
public JComment blockComment()
Description copied from interface:JCommentableAdd a block comment.- Specified by:
blockCommentin interfaceJCommentable- Returns:
- the block comment body
-
-