コード例 #1
0
 @Override
 public boolean beforeMethodCall(final MethodCall call) {
   for (TypeCheckingExtension handler : handlers) {
     if (handler.beforeMethodCall(call)) return true;
   }
   return false;
 }
コード例 #2
0
 @Override
 public boolean beforeVisitMethod(final MethodNode node) {
   for (TypeCheckingExtension handler : handlers) {
     if (handler.beforeVisitMethod(node)) return true;
   }
   return false;
 }
コード例 #3
0
 @Override
 public boolean handleIncompatibleAssignment(
     final ClassNode lhsType, final ClassNode rhsType, final Expression assignmentExpression) {
   for (TypeCheckingExtension handler : handlers) {
     if (handler.handleIncompatibleAssignment(lhsType, rhsType, assignmentExpression)) return true;
   }
   return false;
 }
コード例 #4
0
 public List<MethodNode> handleMissingMethod(
     final ClassNode receiver,
     final String name,
     final ArgumentListExpression argumentList,
     final ClassNode[] argumentTypes,
     final MethodCall call) {
   List<MethodNode> result = new LinkedList<MethodNode>();
   for (TypeCheckingExtension handler : handlers) {
     result.addAll(handler.handleMissingMethod(receiver, name, argumentList, argumentTypes, call));
   }
   return result;
 }
コード例 #5
0
 @Override
 public void afterVisitMethod(final MethodNode node) {
   for (TypeCheckingExtension handler : handlers) {
     handler.afterVisitMethod(node);
   }
 }
コード例 #6
0
 public boolean handleUnresolvedAttribute(final AttributeExpression aexp) {
   for (TypeCheckingExtension handler : handlers) {
     if (handler.handleUnresolvedAttribute(aexp)) return true;
   }
   return false;
 }
コード例 #7
0
 public boolean handleUnresolvedProperty(final PropertyExpression pexp) {
   for (TypeCheckingExtension handler : handlers) {
     if (handler.handleUnresolvedProperty(pexp)) return true;
   }
   return false;
 }
コード例 #8
0
 public boolean handleUnresolvedVariableExpression(VariableExpression vexp) {
   for (TypeCheckingExtension handler : handlers) {
     if (handler.handleUnresolvedVariableExpression(vexp)) return true;
   }
   return false;
 }
コード例 #9
0
 @Override
 public void finish() {
   for (TypeCheckingExtension handler : handlers) {
     handler.finish();
   }
 }
コード例 #10
0
 @Override
 public void setup() {
   for (TypeCheckingExtension handler : handlers) {
     handler.setup();
   }
 }
コード例 #11
0
 @Override
 public void onMethodSelection(final Expression expression, final MethodNode target) {
   for (TypeCheckingExtension handler : handlers) {
     handler.onMethodSelection(expression, target);
   }
 }
コード例 #12
0
 @Override
 public void afterMethodCall(final MethodCall call) {
   for (TypeCheckingExtension handler : handlers) {
     handler.afterMethodCall(call);
   }
 }