org.eclipse.xtext.common.types.util
Class TypeArgumentContext

java.lang.Object
  extended by org.eclipse.xtext.common.types.util.TypeArgumentContext
All Implemented Interfaces:
ITypeArgumentContext

public class TypeArgumentContext
extends java.lang.Object
implements ITypeArgumentContext

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
protected  class TypeArgumentContext.CopyingTypeReferenceVisitor
           
 
Constructor Summary
TypeArgumentContext(java.util.Map<JvmTypeParameter,JvmTypeReference> boundParameters, TypeReferences typeReferences, TypesFactory typesFactory, IRawTypeHelper rawTypeHelper, Primitives primitives)
           
 
Method Summary
 JvmTypeReference getBoundArgument(JvmTypeParameter parameter)
           
protected  java.util.Collection<JvmTypeParameter> getBoundParameters()
           
 JvmTypeReference getLowerBound(JvmTypeReference element)
           
 JvmTypeReference getUpperBound(JvmTypeReference element, org.eclipse.emf.common.notify.Notifier context)
           
protected  JvmTypeReference internalGetBoundArgument(JvmTypeParameter parameter)
           
 boolean isRawTypeContext()
           
 JvmTypeReference resolve(JvmTypeReference element)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeArgumentContext

public TypeArgumentContext(java.util.Map<JvmTypeParameter,JvmTypeReference> boundParameters,
                           TypeReferences typeReferences,
                           TypesFactory typesFactory,
                           IRawTypeHelper rawTypeHelper,
                           Primitives primitives)
Method Detail

getBoundArgument

public JvmTypeReference getBoundArgument(JvmTypeParameter parameter)
Specified by:
getBoundArgument in interface ITypeArgumentContext

getBoundParameters

protected java.util.Collection<JvmTypeParameter> getBoundParameters()

internalGetBoundArgument

protected JvmTypeReference internalGetBoundArgument(JvmTypeParameter parameter)

getLowerBound

public JvmTypeReference getLowerBound(JvmTypeReference element)
Specified by:
getLowerBound in interface ITypeArgumentContext

getUpperBound

public JvmTypeReference getUpperBound(JvmTypeReference element,
                                      org.eclipse.emf.common.notify.Notifier context)
Specified by:
getUpperBound in interface ITypeArgumentContext

resolve

public JvmTypeReference resolve(JvmTypeReference element)
Specified by:
resolve in interface ITypeArgumentContext

isRawTypeContext

public boolean isRawTypeContext()
Specified by:
isRawTypeContext in interface ITypeArgumentContext

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object