Code example for ResourceScriptSource

Methods: getScriptAsStringisModified

0
	} 
 
	public String getScriptAsString() throws IOException {
		if (this.script == null || this.isModified()) {
			this.lastModifiedChecked.set(System.currentTimeMillis());
			this.script = source.getScriptAsString();
		} 
		return this.script;
	} 
 
	public String suggestedClassName() {
		return this.source.suggestedClassName();
	} 
 
	public boolean isModified() { 
		return this.refreshDelay >= 0 &&
				(System.currentTimeMillis() - this.lastModifiedChecked.get()) > this.refreshDelay &&
				this.source.isModified();
	} 
 
	@Override 
	public String toString() {
		return this.source.toString();
Experience pair programming with AI  Get Codota for Java