private boolean isActionListener(String name){
  return name.equals("onClick");
}

private boolean isActionListener ( String name ) { return name . equals ( "onClick" ) ; }
checks whether this name is the name of a well - known android listener attribute . this is a function to allow for future extension .
