MethodSnippet (Java SE 19 & JDK 19) (original) (raw)


Snippet for a method definition. The Kind is Snippet.Kind.METHOD.

MethodSnippet is immutable: an access to any of its methods will always return the same result. and thus is thread-safe.

See Java Language Specification:

8.4 Method Declarations

Since:

9

A String representation of the parameter types of the method.
[signature](#signature%28%29)()
The full type signature of the method, including return type.

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)