org.eclipse.xtend.middleend.xpand.internal
Class XpandConverterUtil

java.lang.Object
  extended by org.eclipse.xtend.middleend.xpand.internal.XpandConverterUtil

public class XpandConverterUtil
extends java.lang.Object


Constructor Summary
XpandConverterUtil()
           
 
Method Summary
static XpandDefinition findDefinition(XpandExecutionContext ctx, java.lang.String name, Type target, Type[] paramTypes)
          Find a XpandDefinition based on it's name and parameter types
static XpandDefinition guessDefinition(XpandExecutionContext ctx, java.lang.String name, Type target, Type[] paramTypes)
          Try to find a XpandDefinition based on it's name and the number of parameters
static java.lang.String lastSegment(java.lang.String fqn)
          Get the last segment of the FQN
static java.lang.String withoutLastSegment(java.lang.String fqn)
          Get the namespace of the FQN dropping the last segment of the FQN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XpandConverterUtil

public XpandConverterUtil()
Method Detail

findDefinition

public static XpandDefinition findDefinition(XpandExecutionContext ctx,
                                             java.lang.String name,
                                             Type target,
                                             Type[] paramTypes)
Find a XpandDefinition based on it's name and parameter types

Parameters:
ctx -
name -
target -
paramTypes -
Returns:

guessDefinition

public static XpandDefinition guessDefinition(XpandExecutionContext ctx,
                                              java.lang.String name,
                                              Type target,
                                              Type[] paramTypes)
Try to find a XpandDefinition based on it's name and the number of parameters

Parameters:
ctx -
name -
target -
paramTypes -
Returns:

withoutLastSegment

public static java.lang.String withoutLastSegment(java.lang.String fqn)
Get the namespace of the FQN dropping the last segment of the FQN

Parameters:
fqn -
Returns:

lastSegment

public static java.lang.String lastSegment(java.lang.String fqn)
Get the last segment of the FQN

Parameters:
fqn -
Returns: