| package org.eclipse.jdt.apt.core.internal.generatedfile; |
| |
| import org.eclipse.core.resources.IFile; |
| |
| /** |
| * Simple container class for holding the result of file generation.<P> |
| * |
| * It contains the generated file, as well as a boolean indicating if it |
| * has changed since it was last seen. This is used to force compilation |
| * of the file later. |
| */ |
| public class FileGenerationResult { |
| |
| private final IFile file; |
| private final boolean modified; |
| |
| public FileGenerationResult(final IFile file, final boolean modified) { |
| this.file = file; |
| this.modified = modified; |
| } |
| |
| public IFile getFile() { |
| return file; |
| } |
| |
| public boolean isModified() { |
| return modified; |
| } |
| |
| } |