1 package com.github.javaparser.printer.lexicalpreservation; 2 3 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 4 5 public interface DifferenceElement { added(CsmElement element)6 static DifferenceElement added(CsmElement element) { 7 return new Added(element); 8 } 9 removed(CsmElement element)10 static DifferenceElement removed(CsmElement element) { 11 return new Removed(element); 12 } 13 kept(CsmElement element)14 static DifferenceElement kept(CsmElement element) { 15 return new Kept(element); 16 } 17 18 /** 19 * Return the CsmElement considered in this DifferenceElement. 20 */ getElement()21 CsmElement getElement(); 22 isAdded()23 boolean isAdded(); 24 isRemoved()25 boolean isRemoved(); 26 } 27