001/* Token that reports its type as "general." 002 003 Copyright (c) 1997-2014 The Regents of the University of California. 004 All rights reserved. 005 Permission is hereby granted, without written agreement and without 006 license or royalty fees, to use, copy, modify, and distribute this 007 software and its documentation for any purpose, provided that the above 008 copyright notice and the following two paragraphs appear in all copies 009 of this software. 010 011 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY 012 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 013 ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF 014 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF 015 SUCH DAMAGE. 016 017 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, 018 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 019 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE 020 PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF 021 CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, 022 ENHANCEMENTS, OR MODIFICATIONS. 023 024 PT_COPYRIGHT_VERSION_2 025 COPYRIGHTENDKEY 026 027 028 */ 029package ptolemy.data.expr; 030 031import ptolemy.data.Token; 032import ptolemy.data.type.BaseType; 033import ptolemy.data.type.Type; 034 035/////////////////////////////////////////////////////////////////// 036//// GeneralToken 037 038/** 039 This is a token that reports its type as "general." 040 Otherwise, this class is identical to its parent class. 041 The constant named general (defined in the Constants class) is 042 an instance of this token. 043 044 @author Steve Neuendorffer 045 @version $Id$ 046 @since Ptolemy II 2.0 047 @Pt.ProposedRating Yellow (yuhong) 048 @Pt.AcceptedRating Red (wbwu) 049 @see Constants 050 */ 051public class GeneralToken extends Token { 052 /////////////////////////////////////////////////////////////////// 053 //// public methods //// 054 055 /** Return the type of this token. 056 * @return BaseType.GENERAL. 057 */ 058 @Override 059 public Type getType() { 060 return BaseType.GENERAL; 061 } 062}