< prev index next >

src/jdk.compiler/share/classes/com/sun/source/tree/InstanceOfTree.java

Print this page




  34  * </pre>
  35  *
  36  * @jls 15.20.2 Type Comparison Operator instanceof
  37  *
  38  * @author Peter von der Ah&eacute;
  39  * @author Jonathan Gibbons
  40  * @since 1.6
  41  */
  42 public interface InstanceOfTree extends ExpressionTree {
  43     /**
  44      * Returns the expression to be tested.
  45      * @return the expression
  46      */
  47     ExpressionTree getExpression();
  48 
  49     /**
  50      * Returns the type for which to check.
  51      * @return the type
  52      */
  53     Tree getType();






  54 }


  34  * </pre>
  35  *
  36  * @jls 15.20.2 Type Comparison Operator instanceof
  37  *
  38  * @author Peter von der Ah&eacute;
  39  * @author Jonathan Gibbons
  40  * @since 1.6
  41  */
  42 public interface InstanceOfTree extends ExpressionTree {
  43     /**
  44      * Returns the expression to be tested.
  45      * @return the expression
  46      */
  47     ExpressionTree getExpression();
  48 
  49     /**
  50      * Returns the type for which to check.
  51      * @return the type
  52      */
  53     Tree getType();
  54 
  55     /**
  56      * Returns the tested pattern.
  57      * @return the tested pattern
  58      */
  59     PatternTree getPattern();
  60 }
< prev index next >