Package gw.internal.gosu.parser
Class GenericTypeVariable
- java.lang.Object
-
- gw.internal.gosu.parser.GenericTypeVariable
-
- All Implemented Interfaces:
IGenericTypeVariable
public class GenericTypeVariable extends java.lang.Object implements IGenericTypeVariable
-
-
Field Summary
Fields Modifier and Type Field Description private IType_boundingTypeprivate java.lang.String_strNameprivate TypeVariableDefinitionImpl_typeVariableDefinitionstatic GenericTypeVariable[]EMPTY_TYPEVARS
-
Constructor Summary
Constructors Modifier Constructor Description GenericTypeVariable(TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType)GenericTypeVariable(GenericTypeVariable source)GenericTypeVariable(IType enclosingType, IJavaClassTypeVariable typeVar, TypeVarToTypeMap actualParamByVarName)privateGenericTypeVariable(java.lang.String strName, TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType)GenericTypeVariable(java.lang.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)IGenericTypeVariablecopy()IGenericTypeVariablecopy(IType boundingType)voidcreateTypeVariableDefinition(IType enclosingType)booleanequals(java.lang.Object o)ITypegetBoundingType()java.lang.StringgetName()java.lang.StringgetNameWithBounds(boolean bRelative)ITypeVariableDefinitiongetTypeVariableDefinition()inthashCode()IGenericTypeVariableremapBounds(TypeVarToTypeMap actualParamByVarName)private voidsetBoundingType(IType type)voidsetName(java.lang.String strName)
-
-
-
Field Detail
-
EMPTY_TYPEVARS
public static final GenericTypeVariable[] EMPTY_TYPEVARS
-
_strName
private java.lang.String _strName
-
_typeVariableDefinition
private TypeVariableDefinitionImpl _typeVariableDefinition
-
_boundingType
private IType _boundingType
-
-
Constructor Detail
-
GenericTypeVariable
public GenericTypeVariable(java.lang.String strName, IType boundingType)
-
GenericTypeVariable
public GenericTypeVariable(TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType)
-
GenericTypeVariable
public GenericTypeVariable(IType enclosingType, IJavaClassTypeVariable typeVar, TypeVarToTypeMap actualParamByVarName)
-
GenericTypeVariable
private GenericTypeVariable(java.lang.String strName, TypeVariableDefinitionImpl typeVariableDefinition, IType boundingType)
-
GenericTypeVariable
public GenericTypeVariable(GenericTypeVariable source)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIGenericTypeVariable
-
setName
public void setName(java.lang.String strName)
-
getNameWithBounds
public java.lang.String getNameWithBounds(boolean bRelative)
- Specified by:
getNameWithBoundsin interfaceIGenericTypeVariable
-
getTypeVariableDefinition
public ITypeVariableDefinition getTypeVariableDefinition()
- Specified by:
getTypeVariableDefinitionin interfaceIGenericTypeVariable
-
getBoundingType
public IType getBoundingType()
- Specified by:
getBoundingTypein interfaceIGenericTypeVariable
-
setBoundingType
private void setBoundingType(IType type)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
convertTypeVars
public static GenericTypeVariable[] convertTypeVars(IType enclosingType, IType classType, IJavaClassTypeVariable[] fromVars)
-
copy
public IGenericTypeVariable copy()
- Specified by:
copyin interfaceIGenericTypeVariable
-
copy
public IGenericTypeVariable copy(IType boundingType)
-
remapBounds
public IGenericTypeVariable remapBounds(TypeVarToTypeMap actualParamByVarName)
- Specified by:
remapBoundsin interfaceIGenericTypeVariable
-
createTypeVariableDefinition
public void createTypeVariableDefinition(IType enclosingType)
- Specified by:
createTypeVariableDefinitionin interfaceIGenericTypeVariable
-
-