Package org.jboss.jdeparser
Class AbstractJExpr
java.lang.Object
org.jboss.jdeparser.AbstractJExpr
- Direct Known Subclasses:
AbstractJAssignableExpr,AbstractJCall,BinaryJExpr,BooleanJExpr,CastJExpr,CharJExpr,CondJExpr,DecimalDoubleJExpr,DecimalFloatJExpr,HexDoubleJExpr,HexFloatJExpr,InstanceOfJExpr,IntegerJExpr,JLambdaImpl,KeywordJExpr,LongJExpr,MethodRefJExpr,NewDimJArrayExpr,ParenJExpr,PlainJArrayExpr,StringJExpr,UnaryJExpr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CachingLinkedHashMap<String, JAssignableExpr> private JExprprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_instanceof(Class<?> type) Get a type-testing expression using theinstanceofoperator._instanceof(String type) Get a type-testing expression using theinstanceofoperator._instanceof(JType type) Get a type-testing expression using theinstanceofoperator.Get an expression to construct a new inner class instance of this instance expression.Get an expression to construct a new inner class instance of this instance expression.Get an expression to construct a new inner class instance of this instance expression.Construct a new anonymous subclass of the given type, which must be an inner class of the type of this expression.Construct a new anonymous subclass of the given type, which must be an inner class of the type of this expression.Construct a new anonymous subclass of the given type, which must be an inner class of the type of this expression.Get a field of this object instance (shorthand forJExpr.field(String).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.Call the given method on this expression.Get an expression which is a cast of this expression to the given type.Get an expression which is a cast of this expression to the given type.Get an expression which is a cast of this expression to the given type.comp()Invert this expression using the unary~operator.Combine this expression with two others using the ternary? :operator.Combine this expression with another using the binary/operator.Combine this expression with another using the binary==operator.Get a field of this object instance.Combine this expression with another using the binary>=operator.Combine this expression with another using the binary>operator.idx(int idx) Get an element of this array expression.Get an element of this array expression.Combine this expression with another using the binary<=operator.length()Get thelengthexpression of this array 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.Combine this expression with another using the binary!=operator.neg()Negate this expression using the unary-operator.not()Invert this expression using the unary!operator.(package private) static AbstractJExprCombine this expression with another using the binary||operator.paren()Explicitly wrap this expression in parentheses.Combine this expression with another using the binary+operator.intprec()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.
-
Field Details
-
prec
private final int prec -
fieldCache
-
length
-
-
Constructor Details
-
AbstractJExpr
protected AbstractJExpr(int prec)
-
-
Method Details
-
of
-
plus
Description copied from interface:JExprCombine this expression with another using the binary+operator. -
minus
Description copied from interface:JExprCombine this expression with another using the binary-operator. -
times
Description copied from interface:JExprCombine this expression with another using the binary*operator. -
div
Description copied from interface:JExprCombine this expression with another using the binary/operator. -
mod
Description copied from interface:JExprCombine this expression with another using the binary%operator. -
neg
Description copied from interface:JExprNegate this expression using the unary-operator. -
band
Description copied from interface:JExprCombine this expression with another using the binary&operator. -
bor
Description copied from interface:JExprCombine this expression with another using the binary|operator. -
bxor
Description copied from interface:JExprCombine this expression with another using the binary^operator. -
shr
Description copied from interface:JExprCombine this expression with another using the binary>>operator. -
lshr
Description copied from interface:JExprCombine this expression with another using the binary>>>operator. -
shl
Description copied from interface:JExprCombine this expression with another using the binary<<operator. -
comp
Description copied from interface:JExprInvert this expression using the unary~operator. -
and
Description copied from interface:JExprCombine this expression with another using the binary&&operator. -
or
Description copied from interface:JExprCombine this expression with another using the binary||operator. -
not
Description copied from interface:JExprInvert this expression using the unary!operator. -
eq
Description copied from interface:JExprCombine this expression with another using the binary==operator. -
ne
Description copied from interface:JExprCombine this expression with another using the binary!=operator. -
lt
Description copied from interface:JExprCombine this expression with another using the binary<operator. -
gt
Description copied from interface:JExprCombine this expression with another using the binary>operator. -
le
Description copied from interface:JExprCombine this expression with another using the binary<=operator. -
ge
Description copied from interface:JExprCombine this expression with another using the binary>=operator. -
cond
Description copied from interface:JExprCombine this expression with two others using the ternary? :operator. -
paren
Description copied from interface:JExprExplicitly wrap this expression in parentheses. -
_instanceof
Description copied from interface:JExprGet a type-testing expression using theinstanceofoperator.- Specified by:
_instanceofin interfaceJExpr- Parameters:
type- the type to test- Returns:
- the expression
-
_instanceof
Description copied from interface:JExprGet a type-testing expression using theinstanceofoperator.- Specified by:
_instanceofin interfaceJExpr- Parameters:
type- the type to test- Returns:
- the expression
-
_instanceof
Description copied from interface:JExprGet a type-testing expression using theinstanceofoperator.- Specified by:
_instanceofin interfaceJExpr- Parameters:
type- the type to test- Returns:
- the expression
-
cast
Description copied from interface:JExprGet an expression which is a cast of this expression to the given type. -
cast
Description copied from interface:JExprGet an expression which is a cast of this expression to the given type. -
cast
Description copied from interface:JExprGet an expression which is a cast of this expression to the given type. -
call
Description copied from interface:JExprCall the given method on this expression. -
_new
Description copied from interface:JExprGet an expression to construct a new inner class instance of this instance expression. -
_new
Description copied from interface:JExprGet an expression to construct a new inner class instance of this instance expression. -
_new
Description copied from interface:JExprGet an expression to construct a new inner class instance of this instance expression. -
_newAnon
Description copied from interface:JExprConstruct a new anonymous subclass of the given type, which must be an inner class of the type of this expression. -
_newAnon
Description copied from interface:JExprConstruct a new anonymous subclass of the given type, which must be an inner class of the type of this expression. -
_newAnon
Description copied from interface:JExprConstruct a new anonymous subclass of the given type, which must be an inner class of the type of this expression. -
field
Description copied from interface:JExprGet a field of this object instance. -
$v
Description copied from interface:JExprGet a field of this object instance (shorthand forJExpr.field(String). -
idx
Description copied from interface:JExprGet an element of this array expression. -
idx
Description copied from interface:JExprGet an element of this array expression. -
length
Description copied from interface:JExprGet thelengthexpression of this array expression. -
prec
public int prec()
-