Package gw.internal.gosu.parser
Class GenericTypeVariable
- java.lang.Object
-
- gw.internal.gosu.parser.GenericTypeVariable
-
- All Implemented Interfaces:
IGenericTypeVariable
public class GenericTypeVariable extends Object implements IGenericTypeVariable
-
-
Field Summary
Fields Modifier and Type Field Description static GenericTypeVariable[]
EMPTY_TYPEVARS
-
Constructor Summary
Constructors Constructor Description GenericTypeVariable(TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType)
GenericTypeVariable(GenericTypeVariable source)
GenericTypeVariable(IType enclosingType, IJavaClassTypeVariable typeVar, TypeVarToTypeMap actualParamByVarName)
GenericTypeVariable(String strName, IType boundingType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericTypeVariable[]
convertTypeVars(IType enclosingType, IType classType, IJavaClassTypeVariable[] fromVars)
IGenericTypeVariable
copy()
IGenericTypeVariable
copy(IType boundingType)
void
createTypeVariableDefinition(IType enclosingType)
boolean
equals(Object o)
IType
getBoundingType()
String
getName()
String
getNameWithBounds(boolean bRelative)
ITypeVariableDefinition
getTypeVariableDefinition()
int
hashCode()
IGenericTypeVariable
remapBounds(TypeVarToTypeMap actualParamByVarName)
void
setName(String strName)
-
-
-
Field Detail
-
EMPTY_TYPEVARS
public static final GenericTypeVariable[] EMPTY_TYPEVARS
-
-
Constructor Detail
-
GenericTypeVariable
public GenericTypeVariable(TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType)
-
GenericTypeVariable
public GenericTypeVariable(IType enclosingType, IJavaClassTypeVariable typeVar, TypeVarToTypeMap actualParamByVarName)
-
GenericTypeVariable
public GenericTypeVariable(GenericTypeVariable source)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceIGenericTypeVariable
-
setName
public void setName(String strName)
-
getNameWithBounds
public String getNameWithBounds(boolean bRelative)
- Specified by:
getNameWithBounds
in interfaceIGenericTypeVariable
-
getTypeVariableDefinition
public ITypeVariableDefinition getTypeVariableDefinition()
- Specified by:
getTypeVariableDefinition
in interfaceIGenericTypeVariable
-
getBoundingType
public IType getBoundingType()
- Specified by:
getBoundingType
in interfaceIGenericTypeVariable
-
convertTypeVars
public static GenericTypeVariable[] convertTypeVars(IType enclosingType, IType classType, IJavaClassTypeVariable[] fromVars)
-
copy
public IGenericTypeVariable copy()
- Specified by:
copy
in interfaceIGenericTypeVariable
-
copy
public IGenericTypeVariable copy(IType boundingType)
-
remapBounds
public IGenericTypeVariable remapBounds(TypeVarToTypeMap actualParamByVarName)
- Specified by:
remapBounds
in interfaceIGenericTypeVariable
-
createTypeVariableDefinition
public void createTypeVariableDefinition(IType enclosingType)
- Specified by:
createTypeVariableDefinition
in interfaceIGenericTypeVariable
-
-