Class GenericType


  • public class GenericType
    extends VarType
    • Constructor Detail

      • GenericType

        public GenericType​(int type,
                           int arrayDim,
                           java.lang.String value,
                           VarType parent,
                           java.util.List<VarType> arguments,
                           int wildcard)
    • Method Detail

      • parse

        public static VarType parse​(java.lang.String signature)
      • parse

        public static VarType parse​(java.lang.String signature,
                                    int wildcard)
      • getNextType

        public static java.lang.String getNextType​(java.lang.String value)
      • withWildcard

        public static VarType withWildcard​(VarType var,
                                           int wildcard)
      • getParent

        public VarType getParent()
      • getArguments

        public java.util.List<VarType> getArguments()
      • isGeneric

        public boolean isGeneric()
        Overrides:
        isGeneric in class VarType
      • getWildcard

        public int getWildcard()
      • getCastName

        public java.lang.String getCastName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class VarType
      • equalsExact

        public boolean equalsExact​(java.lang.Object o)
      • argumentsEqual

        public boolean argumentsEqual​(GenericType gt)
      • isAssignable

        public static boolean isAssignable​(VarType from,
                                           VarType to,
                                           java.util.Map<VarType,​java.util.List<VarType>> named)
      • areArgumentsAssignable

        public static boolean areArgumentsAssignable​(VarType from,
                                                     VarType to,
                                                     java.util.Map<VarType,​java.util.List<VarType>> named)
      • getAllGenericVars

        public java.util.List<GenericType> getAllGenericVars()
      • hasUnknownGenericType

        public boolean hasUnknownGenericType​(java.util.Set<VarType> namedGenerics)
      • getGenericSuperType

        public static VarType getGenericSuperType​(VarType derivedType,
                                                  VarType superType)