Groovy 2.2.0

org.codehaus.groovy.transform
[Java] Class AbstractASTTransformUtil

java.lang.Object
  org.codehaus.groovy.transform.AbstractASTTransformUtil
All Implemented Interfaces:
org.objectweb.asm.Opcodes

public abstract class AbstractASTTransformUtil
extends Object

Method Summary
static Statement assignStatement(Expression fieldExpr, Expression value)

static Statement createConstructorStatementDefault(FieldNode fNode)

static ExpressionStatement declStatement(Expression result, Expression init)

static BooleanExpression differentExpr(Expression self, Expression other)

static BooleanExpression differentFieldExpr(FieldNode fNode, Expression other)

static BooleanExpression differentPropertyExpr(PropertyNode pNode, Expression other)

static BooleanExpression equalsNullExpr(Expression argExpr)

static Expression findArg(String argName)

static List getInstanceNonPropertyFields(ClassNode cNode)

static List getInstanceProperties(ClassNode cNode)

static List getInstancePropertyFields(ClassNode cNode)

static List getSuperNonPropertyFields(ClassNode cNode)

static List getSuperPropertyFields(ClassNode cNode)

static boolean hasDeclaredMethod(ClassNode cNode, String name, int argsCount)

static BooleanExpression identicalExpr(Expression self, Expression other)

static BooleanExpression isInstanceOf(Expression objectExpression, ClassNode cNode)

static BooleanExpression isInstanceof(ClassNode cNode, Expression other)

static BooleanExpression isOneExpr(Expression expr)

static boolean isOrImplements(ClassNode fieldType, ClassNode interfaceType)

static BooleanExpression isTrueExpr(Expression argExpr)

static BooleanExpression isZeroExpr(Expression expr)

static BooleanExpression notNullExpr(Expression argExpr)

static Statement returnFalseIfFieldNotEqual(FieldNode fNode, Expression other)

static Statement returnFalseIfNotInstanceof(ClassNode cNode, Expression other)

static IfStatement returnFalseIfNull(Expression other)

static Statement returnFalseIfPropertyNotEqual(FieldNode fNode, Expression other)

static Statement returnFalseIfPropertyNotEqual(PropertyNode pNode, Expression other)

static Statement returnFalseIfWrongType(ClassNode cNode, Expression other)

static IfStatement returnTrueIfIdentical(Expression self, Expression other)

static Statement safeExpression(Expression fieldExpr, Expression expression)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

assignStatement

public static Statement assignStatement(Expression fieldExpr, Expression value)


createConstructorStatementDefault

public static Statement createConstructorStatementDefault(FieldNode fNode)


declStatement

public static ExpressionStatement declStatement(Expression result, Expression init)


differentExpr

public static BooleanExpression differentExpr(Expression self, Expression other)


differentFieldExpr

public static BooleanExpression differentFieldExpr(FieldNode fNode, Expression other)


differentPropertyExpr

public static BooleanExpression differentPropertyExpr(PropertyNode pNode, Expression other)


equalsNullExpr

public static BooleanExpression equalsNullExpr(Expression argExpr)


findArg

public static Expression findArg(String argName)


getInstanceNonPropertyFields

public static List getInstanceNonPropertyFields(ClassNode cNode)


getInstanceProperties

public static List getInstanceProperties(ClassNode cNode)


getInstancePropertyFields

public static List getInstancePropertyFields(ClassNode cNode)


getSuperNonPropertyFields

public static List getSuperNonPropertyFields(ClassNode cNode)


getSuperPropertyFields

public static List getSuperPropertyFields(ClassNode cNode)


hasDeclaredMethod

public static boolean hasDeclaredMethod(ClassNode cNode, String name, int argsCount)


identicalExpr

public static BooleanExpression identicalExpr(Expression self, Expression other)


isInstanceOf

public static BooleanExpression isInstanceOf(Expression objectExpression, ClassNode cNode)


isInstanceof

public static BooleanExpression isInstanceof(ClassNode cNode, Expression other)


isOneExpr

public static BooleanExpression isOneExpr(Expression expr)


isOrImplements

public static boolean isOrImplements(ClassNode fieldType, ClassNode interfaceType)


isTrueExpr

public static BooleanExpression isTrueExpr(Expression argExpr)


isZeroExpr

public static BooleanExpression isZeroExpr(Expression expr)


notNullExpr

public static BooleanExpression notNullExpr(Expression argExpr)


returnFalseIfFieldNotEqual

public static Statement returnFalseIfFieldNotEqual(FieldNode fNode, Expression other)


returnFalseIfNotInstanceof

public static Statement returnFalseIfNotInstanceof(ClassNode cNode, Expression other)


returnFalseIfNull

public static IfStatement returnFalseIfNull(Expression other)


returnFalseIfPropertyNotEqual

@Deprecated
public static Statement returnFalseIfPropertyNotEqual(FieldNode fNode, Expression other)


returnFalseIfPropertyNotEqual

public static Statement returnFalseIfPropertyNotEqual(PropertyNode pNode, Expression other)


returnFalseIfWrongType

public static Statement returnFalseIfWrongType(ClassNode cNode, Expression other)


returnTrueIfIdentical

public static IfStatement returnTrueIfIdentical(Expression self, Expression other)


safeExpression

public static Statement safeExpression(Expression fieldExpr, Expression expression)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.