org.eclipse.xtend.middleend.xpand.plugin
Class XpandDefinitionName

java.lang.Object
  extended by org.eclipse.xtend.middleend.xpand.plugin.XpandDefinitionName

public final class XpandDefinitionName
extends java.lang.Object

This class serves as a representation of an Xpand definition name. It takes care of the intricacies and ambiguities of Xpand template referencing (fully qualified, relative, ...) by providing a normalized, canonical name.

Author:
Arno Haase (http://www.haase-consulting.com)

Constructor Summary
XpandDefinitionName(java.lang.String rawDefName, Expression target, java.util.List<Expression> args, XpandExecutionContext ctx)
           
XpandDefinitionName(java.lang.String rawDefName, Type targetType, Type[] argTypes, XpandExecutionContext ctx)
           
XpandDefinitionName(XpandDefinition def)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCanonicalDefinitionName()
           
 java.lang.String getCanonicalTemplateFileName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XpandDefinitionName

public XpandDefinitionName(XpandDefinition def)

XpandDefinitionName

public XpandDefinitionName(java.lang.String rawDefName,
                           Type targetType,
                           Type[] argTypes,
                           XpandExecutionContext ctx)
Parameters:
rawDefName - the name as it appears in Xpand code
targetType - may not be null
argTypes -
ctx - the XpandExecutionContext that is valid at the place from which the definition is called. This is necessary to resolve relative references.

XpandDefinitionName

public XpandDefinitionName(java.lang.String rawDefName,
                           Expression target,
                           java.util.List<Expression> args,
                           XpandExecutionContext ctx)
Method Detail

getCanonicalDefinitionName

public java.lang.String getCanonicalDefinitionName()

getCanonicalTemplateFileName

public java.lang.String getCanonicalTemplateFileName()

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object