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
-
minus
-
times
-
div
-
mod
-
neg
-
band
-
bor
-
bxor
-
shr
-
lshr
-
shl
-
comp
-
and
-
or
-
not
-
eq
-
ne
-
lt
-
gt
-
le
-
ge
-
cond
Description copied from interface:JExprCombine this expression with two others using the ternary? :operator. -
paren
-
_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
-
cast
-
cast
-
call
-
_new
-
_new
-
_new
-
_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
-
length
-
prec
public int prec()
-