Advertisement
Gamebuster

Untitled

Dec 24th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. public class ExprWindow extends SimpleExpression<WebDriver>{
  2.     private Expression<WebDriver> driver;
  3.     @Override
  4.     public Class<? extends WebDriver> getReturnType() {
  5.         // TODO Auto-generated method stub
  6.         return WebDriver.class;
  7.     }
  8.  
  9.     @Override
  10.     public boolean isSingle() {
  11.         // TODO Auto-generated method stub
  12.         return true;
  13.     }
  14.  
  15.     @Override
  16.     public boolean init(Expression<?>[] expr, int matchedPattern, Kleenean paramKleenean, ParseResult paramParseResult) {
  17.         // TODO Auto-generated method stub
  18.         driver = (Expression<WebDriver>) expr[0];
  19.         return true;
  20.     }
  21.  
  22.     @Override
  23.     public String toString(@Nullable Event e, boolean arg1) {
  24.         // TODO Auto-generated method stub
  25.         return "Window";
  26.     }
  27.  
  28.     @Override
  29.     @Nullable
  30.     protected WebDriver[] get(Event e) {
  31.         // TODO Auto-generated method stub
  32.         return new WebDriver[]{driver};
  33.     }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement