org.eclipse.xtext.common.types.util
Class LoggingTypeArgumentDecorator
java.lang.Object
org.eclipse.xtext.common.types.util.TypeArgumentContextProvider
org.eclipse.xtext.common.types.util.LoggingTypeArgumentDecorator
- All Implemented Interfaces:
- ITypeArgumentContext, TypeArgumentContextProvider.IInitializableTypeArgumentContext, TypeArgumentContextProvider.Request
public class LoggingTypeArgumentDecorator
- extends TypeArgumentContextProvider
- implements TypeArgumentContextProvider.IInitializableTypeArgumentContext, TypeArgumentContextProvider.Request
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingTypeArgumentDecorator
public LoggingTypeArgumentDecorator(TypeArgumentContextProvider.IInitializableTypeArgumentContext contextDelegate)
isDebugEnabled
public static boolean isDebugEnabled()
indent
protected void indent()
dedent
protected void dedent()
initialize
public void initialize(TypeArgumentContextProvider.Request request,
TypeArgumentContextProvider contextProvider)
- Specified by:
initialize
in interface TypeArgumentContextProvider.IInitializableTypeArgumentContext
getBoundArgument
public JvmTypeReference getBoundArgument(JvmTypeParameter parameter)
- Specified by:
getBoundArgument
in interface ITypeArgumentContext
getLowerBound
public JvmTypeReference getLowerBound(JvmTypeReference reference)
- Specified by:
getLowerBound
in interface ITypeArgumentContext
getUpperBound
public JvmTypeReference getUpperBound(JvmTypeReference reference,
org.eclipse.emf.common.notify.Notifier context)
- Specified by:
getUpperBound
in interface ITypeArgumentContext
resolve
public JvmTypeReference resolve(JvmTypeReference reference)
- Specified by:
resolve
in interface ITypeArgumentContext
isRawTypeContext
public boolean isRawTypeContext()
- Specified by:
isRawTypeContext
in interface ITypeArgumentContext
getReceiverType
public JvmTypeReference getReceiverType()
- Specified by:
getReceiverType
in interface TypeArgumentContextProvider.Request
- Returns:
- the receiver type or null.
getFeature
public JvmFeature getFeature()
- Specified by:
getFeature
in interface TypeArgumentContextProvider.Request
- Returns:
- the feature or null.
getIdentifier
protected java.lang.String getIdentifier(JvmIdentifiableElement identifiable)
getNearestDeclarator
public JvmTypeParameterDeclarator getNearestDeclarator()
- Specified by:
getNearestDeclarator
in interface TypeArgumentContextProvider.Request
- Returns:
- the nearest type parameter declarator
getArgumentTypes
public java.util.List<JvmTypeReference> getArgumentTypes()
- Specified by:
getArgumentTypes
in interface TypeArgumentContextProvider.Request
- Returns:
- the arguments for the executable or null iff no executable context. May be empty.
getExplicitTypeArgument
public java.util.List<JvmTypeReference> getExplicitTypeArgument()
- Specified by:
getExplicitTypeArgument
in interface TypeArgumentContextProvider.Request
- Returns:
- the explicit type arguments or null iff no declarator is available.
getExpectedType
public JvmTypeReference getExpectedType()
- Specified by:
getExpectedType
in interface TypeArgumentContextProvider.Request
- Returns:
- the expected type or null.
getDeclaredType
public JvmTypeReference getDeclaredType()
- Specified by:
getDeclaredType
in interface TypeArgumentContextProvider.Request
- Returns:
- the expected type or null.
getDeclaredBoundsContext
protected ITypeArgumentContext getDeclaredBoundsContext(JvmExecutable feature)
- Overrides:
getDeclaredBoundsContext
in class TypeArgumentContextProvider
getExpectedTypeContext
protected ITypeArgumentContext getExpectedTypeContext(JvmTypeReference declaredType,
JvmTypeReference expectedType)
- Overrides:
getExpectedTypeContext
in class TypeArgumentContextProvider
getExplicitArgumentContext
protected ITypeArgumentContext getExplicitArgumentContext(JvmExecutable executable,
java.util.List<JvmTypeReference> explicitTypeArguments)
- Overrides:
getExplicitArgumentContext
in class TypeArgumentContextProvider
getParameterContext
protected ITypeArgumentContext getParameterContext(JvmExecutable executable,
java.util.List<JvmTypeReference> argumentTypes)
- Overrides:
getParameterContext
in class TypeArgumentContextProvider
getReceiverContext
protected TypeArgumentContext getReceiverContext(JvmTypeReference receiverType)
- Overrides:
getReceiverContext
in class TypeArgumentContextProvider