Package rasj

Class RasType

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int typeID  
      protected java.lang.String typeName  
    • Constructor Summary

      Constructors 
      Constructor Description
      RasType()
      Default constructor.
      RasType​(java.lang.String newTypeName)
      Constructor getting the name of the new type.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static RasType getAnyType​(java.lang.String typeString)
      Builds the type schema from a string representation.
      java.lang.String getName()
      Retrieves the name of this type.
      int getTypeID()
      Retrieves the id of this type.
      boolean isBaseType()
      Checks if this type is a base type (primitive type or structure type).
      boolean isStructType()
      Checks if this type is a primitive or structured type.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • typeName

        protected java.lang.String typeName
      • typeID

        protected int typeID
    • Constructor Detail

      • RasType

        public RasType()
        Default constructor.
      • RasType

        public RasType​(java.lang.String newTypeName)
        Constructor getting the name of the new type.
        Parameters:
        newTypeName - the name of the new type
    • Method Detail

      • getTypeID

        public int getTypeID()
        Retrieves the id of this type.
        Returns:
        the type id
      • getName

        public java.lang.String getName()
        Retrieves the name of this type.
        Returns:
        the type name
      • isStructType

        public boolean isStructType()
        Checks if this type is a primitive or structured type.
        Returns:
        true if this is a structured type, otherwise false
      • isBaseType

        public boolean isBaseType()
        Checks if this type is a base type (primitive type or structure type).
        Returns:
        true for a primitive or structured type, otherwise false
      • getAnyType

        public static RasType getAnyType​(java.lang.String typeString)
        Builds the type schema from a string representation.
        Parameters:
        typeString - the string representation of the type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string represntation of this type