@Override public SourcePosition getSourcePosition() { return this.env.findSourcePosition(this.var); }
@Override public SourcePosition getSourcePosition() { return this.env.findSourcePosition(this.var); }
protected void copyServerSideType(File sourceDir, TypeElement type) throws IOException { SourcePosition source = this.context.getProcessingEnvironment().findSourcePosition(type); JavaFileObject sourceFile = source.getSourceFile(); File destFile = getServerSideDestFile(sourceDir, sourceFile, type); FileWriter writer = new FileWriter(destFile); debug("Writing server-side java type to %s.", destFile); writer.write(sourceFile.getCharContent(false).toString()); writer.flush(); writer.close(); }
protected void copyServerSideType(File sourceDir, TypeElement type) throws IOException { SourcePosition source = this.context.getProcessingEnvironment().findSourcePosition(type); JavaFileObject sourceFile = source.getSourceFile(); File destFile = getServerSideDestFile(sourceDir, sourceFile, type); FileWriter writer = new FileWriter(destFile); debug("Writing server-side java type to %s.", destFile); writer.write(sourceFile.getCharContent(false).toString()); writer.flush(); writer.close(); }
protected void copyServerSideType(File sourceDir, TypeElement type) throws IOException { SourcePosition source = this.context.getProcessingEnvironment().findSourcePosition(type); JavaFileObject sourceFile = source.getSourceFile(); File destFile = getServerSideDestFile(sourceDir, sourceFile, type); FileWriter writer = new FileWriter(destFile); debug("Writing server-side java type to %s.", destFile); writer.write(sourceFile.getCharContent(false).toString()); writer.flush(); writer.close(); }
protected void copyServerSideType(File sourceDir, TypeElement type) throws IOException { SourcePosition source = this.context.getProcessingEnvironment().findSourcePosition(type); JavaFileObject sourceFile = source.getSourceFile(); File destFile = getServerSideDestFile(sourceDir, sourceFile, type); FileWriter writer = new FileWriter(destFile); debug("Writing server-side java type to %s.", destFile); writer.write(sourceFile.getCharContent(false).toString()); writer.flush(); writer.close(); }
SourcePosition position1 = this.env.findSourcePosition(accessor1); SourcePosition position2 = this.env.findSourcePosition(accessor2); if (position1 != null && position2 != null) { return position1.compareTo(position2);
SourcePosition position1 = this.env.findSourcePosition(accessor1); SourcePosition position2 = this.env.findSourcePosition(accessor2); if (position1 != null && position2 != null) { return position1.compareTo(position2);
SourcePosition position1 = this.env.findSourcePosition(accessor1); SourcePosition position2 = this.env.findSourcePosition(accessor2); if (position1 != null && position2 != null) { return position1.compareTo(position2);
SourcePosition position1 = this.env.findSourcePosition(accessor1); SourcePosition position2 = this.env.findSourcePosition(accessor2); if (position1 != null && position2 != null) { return position1.compareTo(position2);
public long findSourceTimestamp(DecoratedProcessingEnvironment env, Element apiElement) { SourcePosition sp = env.findSourcePosition(apiElement); URI uri = sp == null ? null : sp.getPath() == null ? null : sp.getPath().getCompilationUnit() == null ? null : sp.getPath().getCompilationUnit().getSourceFile() == null ? null : sp.getPath().getCompilationUnit().getSourceFile().toUri(); if (uri != null && "file".equalsIgnoreCase(uri.getScheme())) { //it's a file uri. return new File(uri.getPath()).lastModified(); } return 0; }
public long findSourceTimestamp(DecoratedProcessingEnvironment env, Element apiElement) { SourcePosition sp = env.findSourcePosition(apiElement); URI uri = sp == null ? null : sp.getPath() == null ? null : sp.getPath().getCompilationUnit() == null ? null : sp.getPath().getCompilationUnit().getSourceFile() == null ? null : sp.getPath().getCompilationUnit().getSourceFile().toUri(); if (uri != null && "file".equalsIgnoreCase(uri.getScheme())) { //it's a file uri. return new File(uri.getPath()).lastModified(); } return 0; }
SourcePosition position1 = this.env.findSourcePosition(accessor1); SourcePosition position2 = this.env.findSourcePosition(accessor2); if (position1 != null && position2 != null) { return position1.compareTo(position2);
SourcePosition position1 = this.env.findSourcePosition(accessor1); SourcePosition position2 = this.env.findSourcePosition(accessor2); if (position1 != null && position2 != null) { return position1.compareTo(position2);
if (getContext().getProcessingEnvironment().findSourcePosition(registry) == null) { OneTimeLogMessage.SOURCE_FILES_NOT_FOUND.log(getContext()); debug("Unable to find source file for %s.", registry.getQualifiedName());
if (getContext().getProcessingEnvironment().findSourcePosition(registry) == null) { OneTimeLogMessage.SOURCE_FILES_NOT_FOUND.log(getContext()); debug("Unable to find source file for %s.", registry.getQualifiedName());
if (getContext().getProcessingEnvironment().findSourcePosition(typeDef) == null) { OneTimeLogMessage.SOURCE_FILES_NOT_FOUND.log(getContext()); debug("Unable to find source file for %s.", typeDef.getQualifiedName());
if (getContext().getProcessingEnvironment().findSourcePosition(typeDef) == null) { OneTimeLogMessage.SOURCE_FILES_NOT_FOUND.log(getContext()); debug("Unable to find source file for %s.", typeDef.getQualifiedName());
debug("Added %s as a JAX-RS root resource.", rootResource.getQualifiedName()); if (getContext().getProcessingEnvironment().findSourcePosition(rootResource) == null) { OneTimeLogMessage.SOURCE_FILES_NOT_FOUND.log(getContext()); debug("Unable to find source file for %s.", rootResource.getQualifiedName());
if (getContext().getProcessingEnvironment().findSourcePosition(ei) == null) { OneTimeLogMessage.SOURCE_FILES_NOT_FOUND.log(getContext()); debug("Unable to find source file for %s.", ei.getQualifiedName());