public final class TypeDefUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<TypeDef> |
executablesToInterfaces(DslContext context,
java.util.Collection<javax.lang.model.element.ExecutableElement> elements)
|
static TypeDef |
executableToInterface(DslContext context,
javax.lang.model.element.ExecutableElement executableElement)
Convert an
ExecutableElement to a TypeDef |
static java.util.Set<ClassRef> |
extractInterfacesFromClassRef(ClassRef classRef) |
static java.util.Set<ClassRef> |
extractInterfacesFromClassRefs(java.util.Set<ClassRef> types) |
static java.util.Set<ClassRef> |
extractInterfacesFromType(TypeDef type) |
static java.util.Set<ClassRef> |
extractInterfacesFromTypes(java.util.Set<TypeDef> types) |
static java.util.Set<TypeDef> |
getTerminatingTypes(Attributeable type) |
static boolean |
isBeginScope(Attributeable type) |
static boolean |
isCardinalityMultiple(Attributeable type) |
static boolean |
isEndScope(Attributeable type) |
static boolean |
isEntryPoint(Attributeable type) |
static boolean |
isGeneric(Attributeable type) |
static boolean |
isTerminal(Attributeable type) |
static boolean |
isTerminal(javax.lang.model.element.ExecutableElement executableElement) |
static boolean |
isTransition(Attributeable type) |
static boolean |
isVoid(javax.lang.model.element.ExecutableElement executableElement) |
static <T> java.util.List<java.lang.String> |
toClassNames(T value) |
static java.lang.String |
toInterfaceName(java.lang.String name) |
public static TypeDef executableToInterface(DslContext context, javax.lang.model.element.ExecutableElement executableElement)
ExecutableElement to a TypeDefcontext - The context of the operation.executableElement - The target element.TypeDef that describes the interface.public static java.util.Set<TypeDef> executablesToInterfaces(DslContext context, java.util.Collection<javax.lang.model.element.ExecutableElement> elements)
context - The context of the operation.elements - The target elements.TypeDef that describes the interfaces.public static final java.util.Set<TypeDef> getTerminatingTypes(Attributeable type)
public static java.util.Set<ClassRef> extractInterfacesFromTypes(java.util.Set<TypeDef> types)
public static java.util.Set<ClassRef> extractInterfacesFromClassRefs(java.util.Set<ClassRef> types)
public static java.util.Set<ClassRef> extractInterfacesFromType(TypeDef type)
public static java.util.Set<ClassRef> extractInterfacesFromClassRef(ClassRef classRef)
public static java.lang.String toInterfaceName(java.lang.String name)
public static boolean isVoid(javax.lang.model.element.ExecutableElement executableElement)
public static boolean isTerminal(javax.lang.model.element.ExecutableElement executableElement)
public static boolean isEntryPoint(Attributeable type)
public static boolean isTerminal(Attributeable type)
public static boolean isTransition(Attributeable type)
public static boolean isBeginScope(Attributeable type)
public static boolean isEndScope(Attributeable type)
public static boolean isCardinalityMultiple(Attributeable type)
public static boolean isGeneric(Attributeable type)
public static <T> java.util.List<java.lang.String> toClassNames(T value)
Copyright © 2018. All Rights Reserved.