Package gw.internal.gosu.parser
Class GenericTypeVariable
java.lang.Object
gw.internal.gosu.parser.GenericTypeVariable
- All Implemented Interfaces:
IGenericTypeVariable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IType
private String
private TypeVariableDefinitionImpl
static final GenericTypeVariable[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionGenericTypeVariable
(TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType) GenericTypeVariable
(IType enclosingType, IJavaClassTypeVariable typeVar, TypeVarToTypeMap actualParamByVarName) private
GenericTypeVariable
(String strName, TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType) GenericTypeVariable
(String strName, IType boundingType) -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericTypeVariable[]
convertTypeVars
(IType enclosingType, IType classType, IJavaClassTypeVariable[] fromVars) copy()
void
createTypeVariableDefinition
(IType enclosingType) boolean
getName()
getNameWithBounds
(boolean bRelative) int
hashCode()
remapBounds
(TypeVarToTypeMap actualParamByVarName) private void
setBoundingType
(IType type) void
-
Field Details
-
EMPTY_TYPEVARS
-
_strName
-
_typeVariableDefinition
-
_boundingType
-
-
Constructor Details
-
GenericTypeVariable
-
GenericTypeVariable
-
GenericTypeVariable
public GenericTypeVariable(IType enclosingType, IJavaClassTypeVariable typeVar, TypeVarToTypeMap actualParamByVarName) -
GenericTypeVariable
private GenericTypeVariable(String strName, TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType) -
GenericTypeVariable
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceIGenericTypeVariable
-
setName
-
getNameWithBounds
- Specified by:
getNameWithBounds
in interfaceIGenericTypeVariable
-
getTypeVariableDefinition
- Specified by:
getTypeVariableDefinition
in interfaceIGenericTypeVariable
-
getBoundingType
- Specified by:
getBoundingType
in interfaceIGenericTypeVariable
-
setBoundingType
-
equals
-
hashCode
public int hashCode() -
convertTypeVars
public static GenericTypeVariable[] convertTypeVars(IType enclosingType, IType classType, IJavaClassTypeVariable[] fromVars) -
copy
- Specified by:
copy
in interfaceIGenericTypeVariable
-
copy
-
remapBounds
- Specified by:
remapBounds
in interfaceIGenericTypeVariable
-
createTypeVariableDefinition
- Specified by:
createTypeVariableDefinition
in interfaceIGenericTypeVariable
-