ErroneousSnippet (Java SE 19 & JDK 19) (original) (raw)
public class ErroneousSnippet extends Snippet
A snippet of code that is not valid Java programming language code. The Kind is ERRONEOUS.
ErroneousSnippet
is immutable: an access to any of its methods will always return the same result. and thus is thread-safe.
Since:
9
Nested Class Summary
Method Summary
Returns what appears to be the intended Kind in this erroneous snippet.
Methods declared in class java.lang.Object
[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)
Method Details
probableKind
Returns what appears to be the intended Kind in this erroneous snippet.
Returns:
the probable Kind; or Snippet.Kind.ERRONEOUS if that cannot be determined.