polyglot.ast
Interface Instanceof

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

public interface Instanceof
extends Expr

An Instanceof is an immutable representation of the use of the instanceof operator.


Method Summary
 TypeNode compareType()
          Get the type to compare against.
 Instanceof compareType(TypeNode compareType)
          Set the type to compare against.
 Expr expr()
          Get the expression to check.
 Instanceof expr(Expr expr)
          Set the expression to check.
 
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, reachable, reachable
 

Method Detail

expr

public Expr expr()
Get the expression to check.


expr

public Instanceof expr(Expr expr)
Set the expression to check.


compareType

public TypeNode compareType()
Get the type to compare against.


compareType

public Instanceof compareType(TypeNode compareType)
Set the type to compare against.