org.spockframework.compiler
Class FieldInitializationExpression

java.lang.Object
  extended by org.codehaus.groovy.ast.ASTNode
      extended by org.codehaus.groovy.ast.expr.Expression
          extended by org.codehaus.groovy.ast.expr.BinaryExpression
              extended by org.spockframework.compiler.FieldInitializationExpression

public class FieldInitializationExpression
extends 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

Constructor Summary
FieldInitializationExpression(FieldNode field)
           
 
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
 
Methods inherited from class org.codehaus.groovy.ast.ASTNode
getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldInitializationExpression

public FieldInitializationExpression(FieldNode field)


Copyright © 2010. All Rights Reserved.