org.eclipse.xtend.middleend.xpand.plugin
Class XpandDefinitionName
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 codetargetType
- may not be nullargTypes
- 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)
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