All Methods Static Methods Concrete Methods Deprecated Methods
Modifier and Type |
Method and Description |
static BinaryExpression |
andX(Expression lhv,
Expression rhv) |
static ArgumentListExpression |
args(Expression... expressions) |
static ArgumentListExpression |
args(java.util.List<Expression> expressions) |
static ArgumentListExpression |
args(Parameter[] parameters) |
static ArgumentListExpression |
args(java.lang.String... names) |
static Statement |
assignS(Expression target,
Expression value) |
static Expression |
assignX(Expression target,
Expression value) |
static Expression |
attrX(Expression oe,
Expression prop) |
static BinaryExpression |
binX(Expression left,
Token token,
Expression right) |
static BlockStatement |
block(Statement... stmts) |
static BlockStatement |
block(VariableScope varScope,
java.util.List<Statement> stmts) |
static BlockStatement |
block(VariableScope varScope,
Statement... stmts) |
static MethodCallExpression |
callSuperX(java.lang.String methodName) |
static MethodCallExpression |
callSuperX(java.lang.String methodName,
Expression args) |
static MethodCallExpression |
callThisX(java.lang.String methodName) |
static MethodCallExpression |
callThisX(java.lang.String methodName,
Expression args) |
static StaticMethodCallExpression |
callX(ClassNode receiver,
java.lang.String methodName) |
static StaticMethodCallExpression |
callX(ClassNode receiver,
java.lang.String methodName,
Expression args) |
static MethodCallExpression |
callX(Expression receiver,
Expression method,
Expression args) |
static MethodCallExpression |
callX(Expression receiver,
java.lang.String methodName) |
static MethodCallExpression |
callX(Expression receiver,
java.lang.String methodName,
Expression args) |
static CastExpression |
castX(ClassNode type,
Expression expression) |
static CastExpression |
castX(ClassNode type,
Expression expression,
boolean ignoreAutoboxing) |
static CatchStatement |
catchS(Parameter variable,
Statement code) |
static ClassExpression |
classX(java.lang.Class clazz) |
static ClassExpression |
classX(ClassNode clazz) |
static Parameter[] |
cloneParams(Parameter[] source) |
static ClosureExpression |
closureX(Parameter[] params,
Statement code) |
static ClosureExpression |
closureX(Statement code) |
static BinaryExpression |
cmpX(Expression lhv,
Expression rhv) |
static ConstantExpression |
constX(java.lang.Object val) |
static ConstantExpression |
constX(java.lang.Object val,
boolean keepPrimitive) |
static void |
copyAnnotatedNodeAnnotations(AnnotatedNode annotatedNode,
java.util.List<AnnotationNode> copied,
java.util.List<AnnotationNode> notCopied)
Copies all candidateAnnotations with retention policy RetentionPolicy.RUNTIME
and RetentionPolicy.CLASS .
|
static Statement |
createConstructorStatementDefault(FieldNode fNode) |
static Statement |
ctorSuperS() |
static Statement |
ctorSuperS(Expression args) |
static Statement |
ctorThisS() |
static Statement |
ctorThisS(Expression args) |
static ConstructorCallExpression |
ctorX(ClassNode type) |
static ConstructorCallExpression |
ctorX(ClassNode type,
Expression args) |
static Statement |
declS(Expression target,
Expression init) |
static BooleanExpression |
equalsNullX(Expression argExpr) |
static BinaryExpression |
eqX(Expression lhv,
Expression rhv) |
static FieldExpression |
fieldX(ClassNode owner,
java.lang.String fieldName) |
static FieldExpression |
fieldX(FieldNode fieldNode) |
static Expression |
findArg(java.lang.String argName) |
static java.util.List<MethodNode> |
getAllMethods(ClassNode type) |
static java.util.List<PropertyNode> |
getAllProperties(ClassNode type) |
static java.lang.String |
getGetterName(PropertyNode pNode) |
static java.util.List<FieldNode> |
getInstanceNonPropertyFields(ClassNode cNode) |
static java.util.List<PropertyNode> |
getInstanceProperties(ClassNode cNode) |
static java.util.List<FieldNode> |
getInstancePropertyFields(ClassNode cNode) |
static java.util.Set<ClassNode> |
getInterfacesAndSuperInterfaces(ClassNode type) |
static java.util.List<FieldNode> |
getSuperNonPropertyFields(ClassNode cNode) |
static java.util.List<FieldNode> |
getSuperPropertyFields(ClassNode cNode) |
static Expression |
getterThisX(ClassNode annotatedNode,
PropertyNode pNode)
This method is similar to propX(Expression, Expression) but will make sure that if the property
being accessed is defined inside the classnode provided as a parameter, then a getter call is generated
instead of a field access.
|
static Expression |
getterX(ClassNode annotatedNode,
Expression receiver,
PropertyNode pNode)
This method is similar to propX(Expression, Expression) but will make sure that if the property
being accessed is defined inside the classnode provided as a parameter, then a getter call is generated
instead of a field access.
|
static Expression |
getterX(ClassNode annotatedNode,
PropertyNode pNode)
|
static BinaryExpression |
hasClassX(Expression instance,
ClassNode cNode) |
static boolean |
hasDeclaredMethod(ClassNode cNode,
java.lang.String name,
int argsCount) |
static BinaryExpression |
hasEqualFieldX(FieldNode fNode,
Expression other) |
static BinaryExpression |
hasEqualPropertyX(PropertyNode pNode,
Expression other) |
static BooleanExpression |
hasSameFieldX(FieldNode fNode,
Expression other) |
static BooleanExpression |
hasSamePropertyX(PropertyNode pNode,
Expression other) |
static Statement |
ifElseS(Expression cond,
Statement thenStmt,
Statement elseStmt) |
static Statement |
ifS(Expression cond,
Expression trueExpr) |
static Statement |
ifS(Expression cond,
Statement trueStmt) |
static Expression |
indexX(Expression target,
Expression value) |
static BooleanExpression |
isInstanceOfX(Expression objectExpression,
ClassNode cNode) |
static BooleanExpression |
isOneX(Expression expr) |
static boolean |
isOrImplements(ClassNode type,
ClassNode interfaceType) |
static BooleanExpression |
isTrueX(Expression argExpr) |
static BooleanExpression |
isZeroX(Expression expr) |
static BinaryExpression |
ltX(Expression lhv,
Expression rhv) |
static java.lang.String |
makeDescriptorWithoutReturnType(MethodNode mn) |
static BinaryExpression |
neX(Expression lhv,
Expression rhv) |
static BooleanExpression |
notNullX(Expression argExpr) |
static NotExpression |
notX(Expression expr) |
static BinaryExpression |
orX(Expression lhv,
Expression rhv) |
static Parameter |
param(ClassNode type,
java.lang.String name) |
static Parameter |
param(ClassNode type,
java.lang.String name,
Expression initialExpression) |
static Parameter[] |
params(Parameter... params) |
static BinaryExpression |
plusX(Expression lhv,
Expression rhv) |
static Expression |
propX(Expression owner,
Expression property) |
static Expression |
propX(Expression owner,
java.lang.String property) |
static Statement |
returnS(Expression expr) |
static Statement |
safeExpression(Expression fieldExpr,
Expression expression) |
static BooleanExpression |
sameX(Expression self,
Expression other) |
static Statement |
stmt(Expression expr) |
static TernaryExpression |
ternaryX(Expression cond,
Expression trueExpr,
Expression elseExpr) |
static ThrowStatement |
throwS(Expression expr) |
static VariableExpression |
varX(java.lang.String name) |
static VariableExpression |
varX(java.lang.String name,
ClassNode type) |
static VariableExpression |
varX(Variable variable) |