Exemplo n.º 1
0
	public static void main(String[] args) 
				throws FileNotFoundException, IOException{ 
				// Q) so you always need to declare the checked exceptions all the way up trace??
		CP cp = new CP();
		String originalFile = args[0];
		String anotherFile = args[1];
		cp.launch(originalFile , anotherFile);
	}
Exemplo n.º 2
0
 public ClassPropMatch match(
     boolean isLeft,
     ClassPropMatch previousMatchResult,
     List<ClassReference> inputClasses,
     List<? extends Value<?>> inputValues) {
   // isleft/isright - try to match first, then try to match second using the result
   ClassPropMatch match = class1.match(true, previousMatchResult, inputClasses, inputValues);
   if (match == null) {
     if (isLeft) return null; // if left we didn't properly match
     return previousMatchResult; // if right we'll just skip this
   }
   return class2.match(false, match, inputClasses, inputValues);
 }