[Java] Class Undefined
- groovy.transform.Undefined
public final class Undefined extends Object
Java doesn't allow you to have null as an attribute value. It wants you to indicate what you really mean by null, so that is what we do here - as ugly as it is.
Nested Class Summary
| Modifiers | Name | Description |
|---|---|---|
static class | Undefined.CLASS | |
static class | Undefined.EXCEPTION |
Field Summary
| Modifiers | Name | Description |
|---|---|---|
static String | STRING |
Methods Summary
| Type Params | Return Type | Name and description |
|---|---|---|
public static boolean |
isUndefined(String other) | |
public static boolean |
isUndefined(ClassNode other) | |
public static boolean |
isUndefinedException(ClassNode other) |
Inherited Methods Summary
| Methods inherited from class | Name |
|---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
public static final String STRING
Method Detail
public static boolean isUndefined(String other)
public static boolean isUndefined(ClassNode other)
public static boolean isUndefinedException(ClassNode other)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/transform/Undefined.html