Class TypeInfo


  • public class TypeInfo
    extends Object
    Class wrapper of type and helper options of this type
    • Constructor Detail

      • TypeInfo

        public TypeInfo​(TypeItem type,
                        TypeInfo.TypeClassifiers classifiers,
                        org.eclipse.xtext.naming.QualifiedName code,
                        org.eclipse.xtext.naming.QualifiedName codeRu,
                        Environments environments)
        Constructor
        Parameters:
        type - TypeItem, can't be null
        classifiers - TypeInfo.TypeClassifiers corresponding to type, can't be null
        name - of type, can't be null
        nameRu - Russian name of the type
    • Method Detail

      • getCodeRu

        public org.eclipse.xtext.naming.QualifiedName getCodeRu()
        Gets code corresponding to type
        Returns:
        type code
      • getPriority

        public int getPriority()
        Gets priority of type
        Returns:
        priority
      • isTypeSet

        public boolean isTypeSet()
        Check that type is TypSet
        Returns:
        true if type is TypeSet, falseotherwise
      • isSysEnum

        public boolean isSysEnum()
        Check that type is system enum
        Returns:
        true if type is system enum, falseotherwise
      • isSingle

        public boolean isSingle()
        Check that type is single type
        Returns:
        true if type is single type, falseotherwise
      • isStrongSingle

        public boolean isStrongSingle()
        Check that type is strong single type
        Returns:
        true if type is strong single type, falseotherwise
      • isTypePcOnly

        public boolean isTypePcOnly()
        Returns:
        true if type in this typrInfo is for PC only
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object