org.eclipse.internal.xtend.expression.ast
Class Cast

java.lang.Object
  extended by org.eclipse.internal.xtend.expression.ast.SyntaxElement
      extended by org.eclipse.internal.xtend.expression.ast.Expression
          extended by org.eclipse.internal.xtend.expression.ast.Cast
All Implemented Interfaces:
ISyntaxElement, Analyzable, Evaluatable

public class Cast
extends Expression

Author:
Sven Efftinge (http://www.efftinge.de), Arno Haase, Bernd Kolb

Field Summary
 
Fields inherited from class org.eclipse.internal.xtend.expression.ast.SyntaxElement
end, line, start
 
Constructor Summary
Cast(Identifier type, Expression target)
           
 
Method Summary
 Type analyzeInternal(ExecutionContext ctx, java.util.Set<AnalysationIssue> issues)
           
 java.lang.Object evaluateInternal(ExecutionContext ctx)
           
 Expression getTarget()
           
 Identifier getType()
           
protected  java.lang.String toStringInternal()
           
 
Methods inherited from class org.eclipse.internal.xtend.expression.ast.Expression
analyze, evaluate, findType, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cast

public Cast(Identifier type,
            Expression target)
Method Detail

getTarget

public Expression getTarget()

getType

public Identifier getType()

evaluateInternal

public java.lang.Object evaluateInternal(ExecutionContext ctx)
Specified by:
evaluateInternal in class Expression

analyzeInternal

public Type analyzeInternal(ExecutionContext ctx,
                            java.util.Set<AnalysationIssue> issues)
Specified by:
analyzeInternal in class Expression

toStringInternal

protected java.lang.String toStringInternal()
Specified by:
toStringInternal in class Expression