public class TypeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addStaticMethod(com.squareup.javapoet.TypeSpec.Builder builder,
com.squareup.javapoet.TypeName returnType,
com.squareup.javapoet.TypeSpec.Builder... anonymousbuilder) |
static com.squareup.javapoet.ClassName |
builderClassName(com.sap.cds.reflect.CdsDefinition def) |
static com.squareup.javapoet.ClassName |
className(String name) |
static Stream<com.sap.cds.reflect.CdsElement> |
getAnonymousElements(com.sap.cds.reflect.CdsElement element) |
static com.squareup.javapoet.TypeName |
getAttributeType(com.sap.cds.reflect.CdsType type,
Configuration cfg) |
static com.squareup.javapoet.TypeName |
getReturnType(com.sap.cds.reflect.CdsElement attribute,
Configuration cfg) |
static boolean |
isAnonymousAspect(com.sap.cds.reflect.CdsElement element) |
static boolean |
isCompositionOfAspectsWithStructuredElements(com.sap.cds.reflect.CdsElement element) |
static com.squareup.javapoet.ParameterizedTypeName |
listOf(com.squareup.javapoet.TypeName type) |
public static com.squareup.javapoet.TypeName getAttributeType(com.sap.cds.reflect.CdsType type,
Configuration cfg)
public static com.squareup.javapoet.TypeName getReturnType(com.sap.cds.reflect.CdsElement attribute,
Configuration cfg)
public static com.squareup.javapoet.ParameterizedTypeName listOf(com.squareup.javapoet.TypeName type)
public static com.squareup.javapoet.ClassName className(String name)
public static com.squareup.javapoet.ClassName builderClassName(com.sap.cds.reflect.CdsDefinition def)
public static boolean isAnonymousAspect(com.sap.cds.reflect.CdsElement element)
public static boolean isCompositionOfAspectsWithStructuredElements(com.sap.cds.reflect.CdsElement element)
public static Stream<com.sap.cds.reflect.CdsElement> getAnonymousElements(com.sap.cds.reflect.CdsElement element)
public static void addStaticMethod(com.squareup.javapoet.TypeSpec.Builder builder,
com.squareup.javapoet.TypeName returnType,
com.squareup.javapoet.TypeSpec.Builder... anonymousbuilder)
Copyright © 2021 SAP. All rights reserved.