polyglot.ast
Interface Cast

All Superinterfaces:
java.lang.Cloneable, Copy, Expr, JL, Node, NodeOps, Prefix, Receiver, Term, Typed
All Known Implementing Classes:
Cast_c

public interface Cast
extends Expr

A Cast is an immutable representation of a casting operation. It consists of an Expr being cast and a TypeNode being cast to.


Method Summary
 TypeNode castType()
          The type to cast to.
 Cast castType(TypeNode castType)
          Set the type to cast to.
 Expr expr()
          The expression to cast.
 Cast expr(Expr expr)
          Set the expression to cast.
 
Methods inherited from interface polyglot.ast.Expr
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 
Methods inherited from interface polyglot.ast.Typed
type
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 

Method Detail

castType

TypeNode castType()
The type to cast to.


castType

Cast castType(TypeNode castType)
Set the type to cast to.


expr

Expr expr()
The expression to cast.


expr

Cast expr(Expr expr)
Set the expression to cast.