]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.commands/src/org/simantics/scl/commands/internal/checker/MaybeCheckItem.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.commands / src / org / simantics / scl / commands / internal / checker / MaybeCheckItem.java
1 package org.simantics.scl.commands.internal.checker;
2
3 import java.util.List;
4
5 import org.simantics.scl.compiler.types.Type;
6
7 public class MaybeCheckItem implements CheckItem {
8     
9     CheckItem next;
10
11     public MaybeCheckItem(CheckItem next) {
12         this.next = next;
13     }
14
15     @Override
16     public boolean check(Object check, Object[] parameters, int pos) {
17         if(check == null)
18             return false;
19         return next.check(check, parameters, pos);
20     }
21
22     @Override
23     public void collectParameterTypes(List<Type> types) {
24         next.collectParameterTypes(types); 
25     }
26     
27 }