Package gw.internal.gosu.parser
Class GenericTypeVariable
java.lang.Object
gw.internal.gosu.parser.GenericTypeVariable
- All Implemented Interfaces:
IGenericTypeVariable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ITypeprivate Stringprivate TypeVariableDefinitionImplstatic final GenericTypeVariable[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionGenericTypeVariable(TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType) GenericTypeVariable(IType enclosingType, IJavaClassTypeVariable typeVar, TypeVarToTypeMap actualParamByVarName) privateGenericTypeVariable(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()voidcreateTypeVariableDefinition(IType enclosingType) booleangetName()getNameWithBounds(boolean bRelative) inthashCode()remapBounds(TypeVarToTypeMap actualParamByVarName) private voidsetBoundingType(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:
getNamein interfaceIGenericTypeVariable
-
setName
-
getNameWithBounds
- Specified by:
getNameWithBoundsin interfaceIGenericTypeVariable
-
getTypeVariableDefinition
- Specified by:
getTypeVariableDefinitionin interfaceIGenericTypeVariable
-
getBoundingType
- Specified by:
getBoundingTypein interfaceIGenericTypeVariable
-
setBoundingType
-
equals
-
hashCode
public int hashCode() -
convertTypeVars
public static GenericTypeVariable[] convertTypeVars(IType enclosingType, IType classType, IJavaClassTypeVariable[] fromVars) -
copy
- Specified by:
copyin interfaceIGenericTypeVariable
-
copy
-
remapBounds
- Specified by:
remapBoundsin interfaceIGenericTypeVariable
-
createTypeVariableDefinition
- Specified by:
createTypeVariableDefinitionin interfaceIGenericTypeVariable
-