Class GenericsType


  • public class GenericsType
    extends ASTNode
    This class is used to describe generic type signatures for ClassNodes.
    See Also:
    ClassNode
    • Field Detail

      • EMPTY_ARRAY

        public static final GenericsType[] EMPTY_ARRAY
    • Method Detail

      • setType

        public void setType​(ClassNode type)
      • getUpperBounds

        public ClassNode[] getUpperBounds()
      • getName

        public String getName()
      • isPlaceholder

        public boolean isPlaceholder()
      • setPlaceholder

        public void setPlaceholder​(boolean placeholder)
      • isResolved

        public boolean isResolved()
      • setResolved

        public void setResolved​(boolean res)
      • setName

        public void setName​(String name)
      • isWildcard

        public boolean isWildcard()
      • setWildcard

        public void setWildcard​(boolean wildcard)
      • getLowerBound

        public ClassNode getLowerBound()
      • isCompatibleWith

        public boolean isCompatibleWith​(ClassNode classNode)
        Tells if the provided class node is compatible with this generic type definition
        Parameters:
        classNode - the class node to be checked
        Returns:
        true if the class node is compatible with this generics type definition