org.eclipse.internal.xpand2.ast
Class AbstractDefinition

java.lang.Object
  extended by org.eclipse.internal.xtend.expression.ast.SyntaxElement
      extended by org.eclipse.internal.xpand2.ast.AbstractDefinition
All Implemented Interfaces:
XpandDefinition, ISyntaxElement
Direct Known Subclasses:
Advice, Definition

public abstract class AbstractDefinition
extends SyntaxElement
implements XpandDefinition


Field Summary
protected  String _stringRepresentation
           
protected  boolean wildParams
           
 
Fields inherited from class org.eclipse.internal.xtend.expression.ast.SyntaxElement
end, line, start
 
Constructor Summary
AbstractDefinition(Identifier name, Identifier type, DeclaredParameter[] params, Statement[] body)
           
 
Method Summary
 void analyze(XpandExecutionContext ctx, Set<AnalysationIssue> issues)
           
 boolean equals(Object obj)
           
 void evaluate(XpandExecutionContext ctx, Object _this, Object... params)
           
 Statement[] getBody()
           
 List<Statement> getBodyAsList()
           
 Identifier getDefName()
           
 String getName()
           
 XpandResource getOwner()
           
 DeclaredParameter[] getParams()
           
 List<DeclaredParameter> getParamsAsList()
           
 String getParamString(boolean typesOnly)
           
 String getQualifiedName()
           
 String getTargetType()
           
 Identifier getType()
           
 int hashCode()
           
protected  XpandExecutionContext prepareDeclaredParameters(Object _this, XpandExecutionContext context, Object... params)
           
 void setOwner(Template owner)
           
 String toString()
           
 
Methods inherited from class org.eclipse.internal.xtend.expression.ast.SyntaxElement
accept, getEnd, getFileName, getLine, getNameString, getStart, setEnd, setFileName, setLine, setStart
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.internal.xtend.expression.ast.ISyntaxElement
accept, getEnd, getFileName, getLine, getNameString, getStart
 

Field Detail

_stringRepresentation

protected String _stringRepresentation

wildParams

protected boolean wildParams
Constructor Detail

AbstractDefinition

public AbstractDefinition(Identifier name,
                          Identifier type,
                          DeclaredParameter[] params,
                          Statement[] body)
Method Detail

getOwner

public XpandResource getOwner()
Specified by:
getOwner in interface XpandDefinition

setOwner

public void setOwner(Template owner)

getParams

public DeclaredParameter[] getParams()
Specified by:
getParams in interface XpandDefinition

getParamsAsList

public List<DeclaredParameter> getParamsAsList()

getType

public Identifier getType()

getTargetType

public String getTargetType()
Specified by:
getTargetType in interface XpandDefinition

getDefName

public Identifier getDefName()

getName

public String getName()
Specified by:
getName in interface XpandDefinition

getQualifiedName

public String getQualifiedName()
Specified by:
getQualifiedName in interface XpandDefinition

getParamString

public String getParamString(boolean typesOnly)
Specified by:
getParamString in interface XpandDefinition

getBody

public Statement[] getBody()

getBodyAsList

public List<Statement> getBodyAsList()

analyze

public void analyze(XpandExecutionContext ctx,
                    Set<AnalysationIssue> issues)

evaluate

public void evaluate(XpandExecutionContext ctx,
                     Object _this,
                     Object... params)
Specified by:
evaluate in interface XpandDefinition

prepareDeclaredParameters

protected XpandExecutionContext prepareDeclaredParameters(Object _this,
                                                          XpandExecutionContext context,
                                                          Object... params)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2015. All rights reserved.