polyglot.ast
Interface Cast
- All Superinterfaces:
- java.lang.Cloneable, Copy, Expr, JL, Node, NodeOps, Prefix, Receiver, Term, Typed
- All Known Subinterfaces:
- PolyJCast
- All Known Implementing Classes:
- Cast_c, PolyJCast_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.
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 |
castType
public TypeNode castType()
- The type to cast to.
castType
public Cast castType(TypeNode castType)
- Set the type to cast to.
expr
public Expr expr()
- The expression to cast.
expr
public Cast expr(Expr expr)
- Set the expression to cast.