ptolemy.copernicus.java
Class TypeTag

java.lang.Object
  extended byptolemy.copernicus.java.TypeTag
All Implemented Interfaces:
soot.tagkit.Tag

public class TypeTag
extends java.lang.Object
implements soot.tagkit.Tag

A tag that references a ptolemy token type. This tag is used to store information regarding the resolved ptolemy type of a local or field. Often this information is redundant (for instance, in the case of a local defined as a DoubleToken, the type can only be BaseType.DOUBLE). However, in many cases the ptolemy type contains more information than java type (for instance, in the case of ArrayType).

Since:
Ptolemy II 2.0
Version:
$Id: TypeTag.java,v 1.10 2004/04/13 03:16:03 cxh Exp $
Author:
Stephen Neuendorffer
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Constructor Summary
TypeTag(Type type)
          Construct a new tag that refers to the given type.
 
Method Summary
 java.lang.String getName()
          Return the name of the tag.
 Type getType()
          Return the value of the tag.
 byte[] getValue()
          Returns the tag raw data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeTag

public TypeTag(Type type)
Construct a new tag that refers to the given type.

Method Detail

getName

public java.lang.String getName()
Return the name of the tag.

Specified by:
getName in interface soot.tagkit.Tag

getType

public Type getType()
Return the value of the tag.


getValue

public byte[] getValue()
                throws soot.tagkit.AttributeValueException
Returns the tag raw data.

Specified by:
getValue in interface soot.tagkit.Tag
Throws:
soot.tagkit.AttributeValueException