Package com.google.errorprone.refaster
Class UTypeVar
java.lang.Object
com.sun.tools.javac.code.Types.DefaultTypeVisitor<R,S>
com.sun.tools.javac.code.Types.SimpleVisitor<Choice<Unifier>,Unifier>
com.google.errorprone.refaster.UType
com.google.errorprone.refaster.UTypeVar
- All Implemented Interfaces:
Unifiable<com.sun.tools.javac.code.Type>
,com.sun.tools.javac.code.Type.Visitor<Choice<Unifier>,Unifier>
,Serializable
public class UTypeVar extends UType
UType
version of Type.TypeVar
.- Author:
- Louis Wasserman
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UTypeVar.Key
Bindings key linked to aUTypeVar
.static class
UTypeVar.TypeWithExpression
Tuple of an expression with an associated type. -
Method Summary
Modifier and Type Method Description static UTypeVar
create(String name)
static UTypeVar
create(String name, UType upperBound)
static UTypeVar
create(String name, UType lowerBound, UType upperBound)
boolean
equals(Object obj)
UType
getLowerBound()
String
getName()
UType
getUpperBound()
int
hashCode()
com.sun.tools.javac.code.Type
inline(Inliner inliner)
UTypeVar.Key
key()
void
setLowerBound(UType lowerBound)
void
setUpperBound(UType upperBound)
String
toString()
Choice<Unifier>
visitType(com.sun.tools.javac.code.Type target, Unifier unifier)
Methods inherited from class com.sun.tools.javac.code.Types.SimpleVisitor
visitCapturedType, visitForAll, visitUndetVar
Methods inherited from class com.sun.tools.javac.code.Types.DefaultTypeVisitor
visit, visitArrayType, visitClassType, visitErrorType, visitMethodType, visitModuleType, visitPackageType, visitTypeVar, visitWildcardType
-
Method Details
-
create
-
create
-
create
-
visitType
-
key
-
getName
-
getLowerBound
-
getUpperBound
-
setLowerBound
- Parameters:
lowerBound
- the lowerBound to set
-
setUpperBound
- Parameters:
upperBound
- the upperBound to set
-
inline
- Throws:
CouldNotResolveImportException
-
hashCode
public int hashCode() -
equals
-
toString
-