public class Types extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Types.SpecAndStatus |
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_LANG_VOID |
| Constructor and Description |
|---|
Types() |
| Modifier and Type | Method and Description |
|---|---|
static void |
describeType(io.sundr.codegen.model.TypeDef def,
String indent,
Set<String> visited,
StringBuilder builder) |
static Optional<io.sundr.codegen.model.Property> |
findStatusProperty(io.sundr.codegen.model.TypeDef typeDef)
Finds the status property.
|
static boolean |
isNamespaced(io.sundr.codegen.model.TypeDef definition) |
static boolean |
isNamespaced(io.sundr.codegen.model.TypeDef definition,
Set<io.sundr.codegen.model.TypeDef> visited) |
static boolean |
isStatusProperty(io.sundr.codegen.model.Property property)
Returns true if the specified property corresponds to status.
|
static void |
output(io.sundr.codegen.model.TypeDef def) |
static Types.SpecAndStatus |
resolveSpecAndStatusTypes(io.sundr.codegen.model.TypeDef definition) |
static io.sundr.codegen.model.TypeDef |
typeDefFrom(Class<?> clazz) |
static io.sundr.codegen.model.TypeDef |
typeDefFrom(io.sundr.codegen.model.ClassRef classRef) |
static io.sundr.codegen.model.TypeDef |
unshallow(io.sundr.codegen.model.TypeDef definition) |
public static final String JAVA_LANG_VOID
public static io.sundr.codegen.model.TypeDef typeDefFrom(Class<?> clazz)
public static io.sundr.codegen.model.TypeDef unshallow(io.sundr.codegen.model.TypeDef definition)
public static io.sundr.codegen.model.TypeDef typeDefFrom(io.sundr.codegen.model.ClassRef classRef)
public static void output(io.sundr.codegen.model.TypeDef def)
public static void describeType(io.sundr.codegen.model.TypeDef def,
String indent,
Set<String> visited,
StringBuilder builder)
public static Types.SpecAndStatus resolveSpecAndStatusTypes(io.sundr.codegen.model.TypeDef definition)
public static boolean isNamespaced(io.sundr.codegen.model.TypeDef definition)
public static boolean isNamespaced(io.sundr.codegen.model.TypeDef definition,
Set<io.sundr.codegen.model.TypeDef> visited)
public static Optional<io.sundr.codegen.model.Property> findStatusProperty(io.sundr.codegen.model.TypeDef typeDef)
typeDef - the type whose status property we want to findpublic static boolean isStatusProperty(io.sundr.codegen.model.Property property)
property - the property we want to checktrue if named status, false otherwiseCopyright © 2015–2022 Red Hat. All rights reserved.