org.eclipse.internal.xpand2.ast
Class Advice

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

public class Advice
extends AbstractDefinition
implements XpandAdvice

Author:
Sven Efftinge (http://www.efftinge.de) *

Field Summary
static java.lang.String DEF_VAR_NAME
           
 
Fields inherited from class org.eclipse.internal.xpand2.ast.AbstractDefinition
_stringRepresentation, wildParams
 
Fields inherited from class org.eclipse.internal.xtend.expression.ast.SyntaxElement
end, line, start
 
Constructor Summary
Advice(Identifier pointCut, Identifier type, DeclaredParameter[] params, boolean wildParams, Statement[] body)
           
 
Method Summary
 void analyze(XpandExecutionContext ctx, java.util.Set<AnalysationIssue> issues)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getNameString(ExecutionContext context)
           
 Identifier getPointCut()
           
 int hashCode()
           
 boolean isWildcardParams()
           
 boolean matches(XpandDefinition def, XpandExecutionContext ctx)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.internal.xpand2.ast.AbstractDefinition
evaluate, getBody, getBodyAsList, getDefName, getName, getOwner, getParams, getParamsAsList, getParamString, getQualifiedName, getTargetType, getType, prepareDeclaredParameters, setOwner
 
Methods inherited from class org.eclipse.internal.xtend.expression.ast.SyntaxElement
accept, getEnd, getFileName, getLine, 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.xpand2.model.XpandAdvice
getParams
 
Methods inherited from interface org.eclipse.internal.xpand2.model.XpandDefinition
evaluate, getName, getOwner, getParamString, getQualifiedName, getTargetType
 
Methods inherited from interface org.eclipse.internal.xtend.expression.ast.ISyntaxElement
accept, getEnd, getFileName, getLine, getStart
 

Field Detail

DEF_VAR_NAME

public static final java.lang.String DEF_VAR_NAME
See Also:
Constant Field Values
Constructor Detail

Advice

public Advice(Identifier pointCut,
              Identifier type,
              DeclaredParameter[] params,
              boolean wildParams,
              Statement[] body)
Method Detail

getPointCut

public Identifier getPointCut()

analyze

public void analyze(XpandExecutionContext ctx,
                    java.util.Set<AnalysationIssue> issues)
Overrides:
analyze in class AbstractDefinition

isWildcardParams

public boolean isWildcardParams()

matches

public boolean matches(XpandDefinition def,
                       XpandExecutionContext ctx)
Specified by:
matches in interface XpandAdvice

getNameString

public java.lang.String getNameString(ExecutionContext context)
Specified by:
getNameString in interface ISyntaxElement
Overrides:
getNameString in class SyntaxElement

toString

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractDefinition