/* ************************************************************** *
 *                                                                *
 * Copyright (c) 2005, Kota Mizushima, All rights reserved.       *
 *                                                                *
 *                                                                *
 * This software is distributed under the modified BSD License.   *
 * ************************************************************** */
/*
 * Created on 2004/12/02
 */
package onion.lang.syntax;

import onion.lang.syntax.visitor.ASTVisitor;

;


/**
 * @author Kota Mizushima
 * 
 */
public class TypeSpec extends AstNode {
  
  private RawTypeNode component;
  
  private final int dimension;
  
  private final TypeSpec[] typeArguments;
  
  public TypeSpec(RawTypeNode component, int dimension, TypeSpec[] typeArguments) {
    this.component = component;
    this.dimension = dimension;
    this.typeArguments = typeArguments;
  }
  
  public int getSizeOfTypeArguments(){
    return typeArguments.length;
  }
  
  public TypeSpec getTypeArgument(int index){
    return typeArguments[index];
  }

  public RawTypeNode getComponent() {
    return component;
  }
  
  public String getComponentName(){
    return component.name();
  }
  
  public int getComponentKind(){
    return component.kind();
  }
  
  public int getDimension() {
    return dimension;
  }
  
  public Object accept(ASTVisitor visitor, Object context) {
    return visitor.visit(this, context);
  }
  
}
@@ -576,19 +576,16 @@
 sitor;%0A%0A
-;%0A%0A
 %0A/**%0A * 

Fix a bug.