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 ofType.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
All Methods Static Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
key
public UTypeVar.Key key()
-
getName
public String getName()
-
getLowerBound
public UType getLowerBound()
-
getUpperBound
public UType getUpperBound()
-
setLowerBound
public void setLowerBound(UType lowerBound)
- Parameters:
lowerBound
- the lowerBound to set
-
setUpperBound
public void setUpperBound(UType upperBound)
- Parameters:
upperBound
- the upperBound to set
-
inline
public com.sun.tools.javac.code.Type inline(Inliner inliner) throws CouldNotResolveImportException
- Throws:
CouldNotResolveImportException
-
-