blob: efe36a04799186eb9a1402a5aacc993adf02f632 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 University of Illinois at Urbana-Champaign and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* UIUC - Initial API and implementation
*******************************************************************************/
package org.eclipse.photran.internal.core.parser;
import java.io.PrintStream;
import java.util.Iterator;
import java.util.List;
import org.eclipse.photran.internal.core.parser.ASTListNode;
import org.eclipse.photran.internal.core.parser.ASTNode;
import org.eclipse.photran.internal.core.parser.ASTNodeWithErrorRecoverySymbols;
import org.eclipse.photran.internal.core.parser.IASTListNode;
import org.eclipse.photran.internal.core.parser.IASTNode;
import org.eclipse.photran.internal.core.parser.IASTVisitor;
import org.eclipse.photran.internal.core.lexer.Token;
import org.eclipse.photran.internal.core.lexer.*; import org.eclipse.photran.internal.core.analysis.binding.ScopingNode; import org.eclipse.photran.internal.core.SyntaxException; import java.io.IOException;
@SuppressWarnings("all")
public class ASTInvalidEntityDeclNode extends ASTNode
{
ASTObjectNameNode objectName; // in ASTInvalidEntityDeclNode
org.eclipse.photran.internal.core.lexer.Token hiddenAsterisk2; // in ASTInvalidEntityDeclNode
ASTCharLengthNode initialCharLength; // in ASTInvalidEntityDeclNode
org.eclipse.photran.internal.core.lexer.Token hiddenLparen2; // in ASTInvalidEntityDeclNode
ASTArraySpecNode arraySpec; // in ASTInvalidEntityDeclNode
org.eclipse.photran.internal.core.lexer.Token hiddenRparen2; // in ASTInvalidEntityDeclNode
ASTInitializationNode initialization; // in ASTInvalidEntityDeclNode
public ASTObjectNameNode getObjectName()
{
return this.objectName;
}
public void setObjectName(ASTObjectNameNode newValue)
{
this.objectName = newValue;
if (newValue != null) newValue.setParent(this);
}
public ASTCharLengthNode getInitialCharLength()
{
return this.initialCharLength;
}
public void setInitialCharLength(ASTCharLengthNode newValue)
{
this.initialCharLength = newValue;
if (newValue != null) newValue.setParent(this);
}
public ASTArraySpecNode getArraySpec()
{
return this.arraySpec;
}
public void setArraySpec(ASTArraySpecNode newValue)
{
this.arraySpec = newValue;
if (newValue != null) newValue.setParent(this);
}
public ASTInitializationNode getInitialization()
{
return this.initialization;
}
public void setInitialization(ASTInitializationNode newValue)
{
this.initialization = newValue;
if (newValue != null) newValue.setParent(this);
}
@Override
public void accept(IASTVisitor visitor)
{
visitor.visitASTInvalidEntityDeclNode(this);
visitor.visitASTNode(this);
}
@Override protected int getNumASTFields()
{
return 7;
}
@Override protected IASTNode getASTField(int index)
{
switch (index)
{
case 0: return this.objectName;
case 1: return this.hiddenAsterisk2;
case 2: return this.initialCharLength;
case 3: return this.hiddenLparen2;
case 4: return this.arraySpec;
case 5: return this.hiddenRparen2;
case 6: return this.initialization;
default: throw new IllegalArgumentException("Invalid index");
}
}
@Override protected void setASTField(int index, IASTNode value)
{
switch (index)
{
case 0: this.objectName = (ASTObjectNameNode)value; if (value != null) value.setParent(this); return;
case 1: this.hiddenAsterisk2 = (org.eclipse.photran.internal.core.lexer.Token)value; if (value != null) value.setParent(this); return;
case 2: this.initialCharLength = (ASTCharLengthNode)value; if (value != null) value.setParent(this); return;
case 3: this.hiddenLparen2 = (org.eclipse.photran.internal.core.lexer.Token)value; if (value != null) value.setParent(this); return;
case 4: this.arraySpec = (ASTArraySpecNode)value; if (value != null) value.setParent(this); return;
case 5: this.hiddenRparen2 = (org.eclipse.photran.internal.core.lexer.Token)value; if (value != null) value.setParent(this); return;
case 6: this.initialization = (ASTInitializationNode)value; if (value != null) value.setParent(this); return;
default: throw new IllegalArgumentException("Invalid index");
}
}
}