Class RsType


  • public class RsType
    extends java.lang.Object
    Holds types and/or features with language specs These are expected to be sparse with respect to the complete type system
    • Field Detail

      • EMPTY_FEATURE_LIST

        public static final java.util.List<Feature> EMPTY_FEATURE_LIST
      • typeName

        final java.lang.String typeName
      • isAllFeatures

        boolean isAllFeatures
      • isSpecified

        boolean isSpecified
      • languagesAllFeat

        RsLangs languagesAllFeat
      • languagesNotAllFeat

        RsLangs languagesNotAllFeat
    • Constructor Detail

      • RsType

        RsType​(java.lang.String name)
      • RsType

        RsType​(RsType original)
    • Method Detail

      • subsumesLanguageInFeat

        boolean subsumesLanguageInFeat​(java.lang.String shortFeatName,
                                       java.lang.String lang)
        Parameters:
        shortFeatName -
        lang -
        Returns:
        true if lang subsumed by langs of the feature or of the type with all-feats specified
      • getFeat

        RsFeat getFeat​(java.lang.String shortFeatName)
      • getAllAppropriateFeatures

        java.util.List<Feature> getAllAppropriateFeatures​(TypeSystem ts)
        returns the Features for a type in a result spec
        Parameters:
        ts - The type system, may be null
        Returns:
        list of features for a type in a result spec
      • hasAllFeaturesExplicitly

        boolean hasAllFeaturesExplicitly​(TypeSystem ts)
      • allFeaturesHaveSameLangs

        boolean allFeaturesHaveSameLangs()