Class SymTypeVariable

    • Constructor Detail

      • SymTypeVariable

        public SymTypeVariable​(TypeVarSymbol typeSymbol)
      • SymTypeVariable

        @Deprecated
        public SymTypeVariable​(TypeSymbol typeSymbol)
        Deprecated.
    • Method Detail

      • hasTypeVarSymbol

        @Deprecated
        public boolean hasTypeVarSymbol()
        Deprecated.
        (should) return true
      • getTypeInfo

        @Deprecated
        public TypeSymbol getTypeInfo()
        Deprecated.
        Description copied from class: SymTypeExpression
        Returns an TypeSymbol representing the type Only to be called according to SymTypeExpression.hasTypeInfo()

        As most SymTypeExpressions do not have a TypeSymbol (this is legacy), this method will log a warning and is expected to be overridden, if a TypeSymbol exists.

        Overrides:
        getTypeInfo in class SymTypeExpression
      • getUpperBound

        public SymTypeExpression getUpperBound()
        a type variable only allows sub-types of its upper bound, e.g., T extends Number
      • getVarName

        @Deprecated(forRemoval=true)
        public java.lang.String getVarName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        unused in main projects also: getter and setter do something different, questionable
      • setVarName

        @Deprecated(forRemoval=true)
        public void setVarName​(java.lang.String name)
        Deprecated, for removal: This API element is subject to removal in a future version.
        unused in main projects
      • print

        public java.lang.String print()
        Description copied from class: SymTypeExpression
        print: Conversion to a compact string, such as "int", "Person", "List< A >"
        Overrides:
        print in class SymTypeExpression
      • printFullName

        public java.lang.String printFullName()
        Description copied from class: SymTypeExpression
        printFullName: prints the full name of the symbol, such as "java.util.List<java.lang.String>"
        Overrides:
        printFullName in class SymTypeExpression
        Returns:
      • isValidType

        public boolean isValidType()
        Description copied from class: SymTypeExpression
        Am I a not valid type? e.g. unknown type, not all type variables set, pseudo types like typeVariables
        Overrides:
        isValidType in class SymTypeExpression
      • denotesSameVar

        public boolean denotesSameVar​(SymTypeExpression other)
        Similar to deepEquals, but only checks whether the variables are supposed to be the same variable. E.g., bounds are ignored