1 19 package org.netbeans.modules.java.source.save; 20 21 import com.sun.source.tree.*; 22 import java.util.List ; 23 import org.netbeans.api.java.source.WorkingCopy; 24 25 30 final class EstimatorFactory { 31 32 private EstimatorFactory() { 34 } 35 36 static PositionEstimator throwz(List <? extends ExpressionTree> oldL, 37 List <? extends ExpressionTree> newL, 38 WorkingCopy copy) 39 { 40 return new PositionEstimator.ThrowsEstimator(oldL, newL, copy); 41 } 42 43 static PositionEstimator implementz(List <? extends Tree> oldL, 44 List <? extends Tree> newL, 45 WorkingCopy copy) 46 { 47 return new PositionEstimator.ImplementsEstimator(oldL, newL, copy); 48 } 49 50 static PositionEstimator extendz(List <? extends Tree> oldL, 51 List <? extends Tree> newL, 52 WorkingCopy copy) 53 { 54 return new PositionEstimator.ExtendsEstimator(oldL, newL, copy); 55 } 56 57 static PositionEstimator members(List <? extends Tree> oldL, 58 List <? extends Tree> newL, 59 WorkingCopy copy) 60 { 61 return new PositionEstimator.MembersEstimator(oldL, newL, copy); 62 } 63 64 static PositionEstimator toplevel(List <? extends Tree> oldL, 65 List <? extends Tree> newL, 66 WorkingCopy copy) 67 { 68 return new PositionEstimator.TopLevelEstimator(oldL, newL, copy); 69 } 70 71 106 static PositionEstimator imports(List <? extends ImportTree> oldL, 107 List <? extends ImportTree> newL, 108 WorkingCopy copy) 109 { 110 return new PositionEstimator.ImportsEstimator(oldL, newL, copy); 111 } 112 } 113 | Popular Tags |