Class SpecialClassType

  • All Implemented Interfaces:
    java.lang.Cloneable, Constants, Constants, ContextElement, Constants, RuntimeConstants

    public class SpecialClassType
    extends ClassType
    SpecialClassType represents any one of the following types:
        java.lang.Object
        java.lang.String
     
    all of which are treated as special cases.

    The static forSpecial(...) method must be used to obtain an instance, and will return null if the type is non-conforming.

    • Constructor Detail

      • SpecialClassType

        private SpecialClassType​(ContextStack stack,
                                 int typeCode,
                                 ClassDefinition theClass)
        Create an SpecialClassType instance for the given class.
    • Method Detail

      • forSpecial

        public static SpecialClassType forSpecial​(ClassDefinition theClass,
                                                  ContextStack stack)
        Create a SpecialClassType object for the given class. If the class is not a properly formed or if some other error occurs, the return value will be null, and errors will have been reported to the supplied BatchEnvironment.
      • getTypeDescription

        public java.lang.String getTypeDescription()
        Return a string describing this type.
        Specified by:
        getTypeDescription in class Type