@Override public boolean isInternal(Object impl) { com.oracle.truffle.api.source.Source source = (com.oracle.truffle.api.source.Source) impl; return source.isInternal(); }
@Override public boolean test(Source source) { return !source.isInternal(); }
@Override public boolean isInternal(Object impl) { com.oracle.truffle.api.source.Source source = (com.oracle.truffle.api.source.Source) impl; return source.isInternal(); }
@Override public boolean test(Source source) { return !source.isInternal(); } }).build();
@Override public boolean isInternal() { return key.base.isInternal(); }
@Override public boolean test(Source source) { return !source.isInternal(); }
public boolean test(Source source) { return !source.isInternal(); }
@Override public boolean test(Source source) { boolean internal = (internals || !source.isInternal()); boolean file = testWildcardExpressions(source.getPath(), filterFile); boolean mimeType = filterLanguage.equals("") || filterLanguage.equals(source.getMimeType()); return internal && file && mimeType; } });
final boolean equalAttributes(Source other) { return Objects.equals(getMimeType(), other.getMimeType()) && Objects.equals(getLanguage(), other.getLanguage()) && Objects.equals(getName(), other.getName()) && Objects.equals(getPath(), other.getPath()) && isInternal() == other.isInternal() && isInteractive() == other.isInteractive(); }
/** * Returns <code>true</code> if this root node should be considered internal and not be shown to * a guest language programmer. This method has effect on tools and guest language stack traces. * By default a {@link RootNode} is internal if no language was passed in the constructor or if * the {@link #getSourceSection() root source section} is set and points to an internal source. * This method is intended to be overwritten by guest languages, when the node's source is * internal, the implementation should respect that. Can be called on any thread and without a * language context. * * @since 0.27 */ public boolean isInternal() { if (getLanguageInfo() == null) { return true; } SourceSection sc = getSourceSection(); if (sc != null) { return sc.getSource().isInternal(); } return false; }
/** * Returns <code>true</code> if this root node should be considered internal and not be shown to * a guest language programmer. This method has effect on tools and guest language stack traces. * By default a {@link RootNode} is internal if no language was passed in the constructor or if * the {@link #getSourceSection() root source section} is set and points to an internal source. * This method is intended to be overwritten by guest languages, when the node's source is * internal, the implementation should respect that. Can be called on any thread and without a * language context. * * @since 0.27 */ public boolean isInternal() { if (getLanguageInfo() == null) { return true; } SourceSection sc = getSourceSection(); if (sc != null) { return sc.getSource().isInternal(); } return false; }
try { return Source.newBuilder(source.getLanguage(), new InputStreamReader(connection.getInputStream()), name).uri(uri).cached(false).interactive(source.isInteractive()).internal( source.isInternal()).mimeType(source.getMimeType()).build(); } catch (IOException ex) { return null;
/** * {@inheritDoc} * * @since 1.0 */ @Override public String toString() { return "Source [language=" + getLanguage() + ", name=" + getName() + ", path=" + getPath() + ", internal=" + isInternal() + ", cached=" + isCached() + ", interactive=" + isInteractive() + ", hasBytes=" + hasBytes() + ", hasCharacters=" + hasCharacters() + ", URL=" + getURL() + ", URI=" + getURI() + ", mimeType=" + getMimeType() + "]"; }