001 package edu.rice.cs.javalanglevels.tree;
002
003 import edu.rice.cs.javalanglevels.SourceInfo;
004
005 /**
006 * Class Initializer, a component of the JExpressionIF composite hierarchy.
007 * Note: null is not allowed as a value for any field.
008 * @version Generated automatically by ASTGen at Sun Jun 23 23:00:36 CDT 2013
009 */
010 public abstract class Initializer extends JExpression implements BodyItemI {
011 private final Block _code;
012
013 /**
014 * Constructs a Initializer.
015 * @throws java.lang.IllegalArgumentException If any parameter to the constructor is null.
016 */
017 public Initializer(SourceInfo in_sourceInfo, Block in_code) {
018 super(in_sourceInfo);
019
020 if (in_code == null) {
021 throw new java.lang.IllegalArgumentException("Parameter 'code' to the Initializer constructor was null. This class may not have null field values.");
022 }
023 _code = in_code;
024 }
025
026 public Block getCode() { return _code; }
027
028 public abstract <RetType> RetType visit(JExpressionIFVisitor<RetType> visitor);
029 public abstract void visit(JExpressionIFVisitor_void visitor);
030 public abstract void outputHelp(TabPrintWriter writer);
031 protected abstract int generateHashCode();
032 }