1 16 package com.google.gwt.core.ext.typeinfo; 17 18 import com.google.gwt.core.ext.UnableToCompleteException; 19 20 import java.util.Comparator ; 21 22 25 public interface CompilationUnitProvider { 26 27 Comparator LOCATION_COMPARATOR = new Comparator () { 28 public int compare(Object o1, Object o2) { 29 String loc1 = ((CompilationUnitProvider) o1).getLocation(); 30 String loc2 = ((CompilationUnitProvider) o2).getLocation(); 31 return loc1.compareTo(loc2); 32 } 33 }; 34 35 long getLastModified() throws UnableToCompleteException; 36 37 String getLocation(); 38 39 String getPackageName(); 40 41 char[] getSource() throws UnableToCompleteException; 42 43 boolean isTransient(); 44 } 45 | Popular Tags |