// $Id: Xobj.java,v 1.2 1999/05/20 09:32:28 m-hirano Exp $
// $RWC_Release: Omni-1.6 $
// $RWC_Copyright:
//  Omni Compiler Software Version 1.5-1.6
//  Copyright (C) 2002 PC Cluster Consortium
//  
//  This software is free software; you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License version
//  2.1 published by the Free Software Foundation.
//  
//  Omni Compiler Software Version 1.0-1.4
//  Copyright (C) 1999, 2000, 2001.
//   Tsukuba Research Center, Real World Computing Partnership, Japan.
//  
//  Please check the Copyright and License information in the files named
//  COPYRIGHT and LICENSE under the top  directory of the Omni Compiler
//  Software release kit.
//  
//  
//  $
package exc.object;

//
// class for static constructor
// 
public class Xobj {
    public static XobjString String(int code,Xtype type,String value){
	return new XobjString(code,type,value);
    }
    public static XobjString String(int code,String value){
	return new XobjString(code,value);
    }
    public static XobjString Symbol(int code,Xtype type,String value){
	return new XobjString(code,type,value);
    }
    public static XobjString Symbol(int code,String value){
	return new XobjString(code,value);
    }
    public static XobjInt Int(int code,Xtype type,int value){
	return new XobjInt(code,type,value);
    }
    public static XobjInt Int(int code,int value){
	return new XobjInt(code,value);
    }
    public static XobjLong Long(int code,Xtype type,long l){
	return new XobjLong(code,type,l);
    }
    public static XobjLong Long(int code,Xtype type,int high,int low){
	return new XobjLong(code,type,high,low);
    }
    public static XobjLong Float(int code,Xtype type,double d){
	return new XobjLong(code,type,d);
    }

    public static XobjList List(){
	return new XobjList();
    }
    public static XobjList List(int code,Xtype type){
	return new XobjList(code,type);
    }
    public static XobjList List(int code,Xtype type,Xobject a1){
	return new XobjList(code,type,a1);
    }
    public static XobjList List(int code,Xtype type,Xobject a1,Xobject a2){
	return new XobjList(code,type,a1,a2);
    }
    public static XobjList List(int code,Xtype type,Xobject a1,Xobject a2,Xobject a3){
	return new XobjList(code,type,a1,a2,a3);
    }
    public static XobjList List(int code,Xtype type,Xobject a1,Xobject a2,Xobject a3,Xobject a4){
	return new XobjList(code,type,a1,a2,a3,a4);
    }

    public static XobjList List(int code){
	return new XobjList(code);
    }
    public static XobjList List(int code,Xobject a1){
	return new XobjList(code,a1);
    }
    public static XobjList List(int code,Xobject a1,Xobject a2){
	return new XobjList(code,a1,a2);
    }
    public static XobjList List(int code,Xobject a1,Xobject a2,Xobject a3){
	return new XobjList(code,a1,a2,a3);
    }
    public static XobjList List(int code,Xobject a1,Xobject a2,Xobject a3,Xobject a4){
	return new XobjList(code,a1,a2,a3,a4);
    }
    public static XobjList emptyList(){
	return new XobjList(Xcode.LIST);
    }
    public static Ident Ident(String name,int stg_class,Xtype type, Xobject v){
	return new Ident(name,stg_class,type,v);
    }
}
