Class FieldInitializationExpression


  • public class FieldInitializationExpression
    extends org.codehaus.groovy.ast.expr.BinaryExpression
    An assignment of the form "x = expr", where x is a field and expr is a field initializer expression. The purpose of this class is to make field initializations distinguishable from other assignments while traversing the AST.
    Author:
    Peter Niederwieser
    • Method Summary

      • Methods inherited from class org.codehaus.groovy.ast.expr.BinaryExpression

        getLeftExpression, getOperation, getRightExpression, getText, newAssignmentExpression, newInitializationExpression, setLeftExpression, setRightExpression, toString, transformExpression, visit
      • Methods inherited from class org.codehaus.groovy.ast.expr.Expression

        getType, setType, transformExpressions, transformExpressions
      • Methods inherited from class org.codehaus.groovy.ast.AnnotatedNode

        addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
      • Methods inherited from class org.codehaus.groovy.ast.ASTNode

        copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FieldInitializationExpression

        public FieldInitializationExpression​(org.codehaus.groovy.ast.FieldNode field)