public final class TypeHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static TypeMirror |
getInType(CompileEnvironment environment,
TypeMirror type)
Returns the type argument of
In type. |
static TypeMirror |
getOutType(CompileEnvironment environment,
TypeMirror type)
Returns the type argument of
Out type. |
static boolean |
isIn(CompileEnvironment environment,
TypeMirror type)
Returns whether the target type represents an input dataset.
|
static boolean |
isOperatorHelper(CompileEnvironment environment,
TypeMirror type)
Returns whether the target type is an operator helper annotation.
|
static boolean |
isOut(CompileEnvironment environment,
TypeMirror type)
Returns whether the target type represents an output dataset.
|
public static boolean isIn(CompileEnvironment environment, TypeMirror type)
environment - current environmenttype - target typetrue if represents an input, otherwise falseIllegalArgumentException - if some parameters were nullConstants.TYPE_INpublic static TypeMirror getInType(CompileEnvironment environment, TypeMirror type)
In type.environment - current environmenttype - target In typenull if target type is not In typeIllegalArgumentException - if some parameters were nullisIn(CompileEnvironment, TypeMirror)public static TypeMirror getOutType(CompileEnvironment environment, TypeMirror type)
Out type.environment - current environmenttype - target Out typenull if target type is not Out typeIllegalArgumentException - if some parameters were nullisIn(CompileEnvironment, TypeMirror)public static boolean isOut(CompileEnvironment environment, TypeMirror type)
environment - current environmenttype - target typetrue if represents an output, otherwise falseIllegalArgumentException - if some parameters were nullConstants.TYPE_INpublic static boolean isOperatorHelper(CompileEnvironment environment, TypeMirror type)
environment - current environmenttype - target typetrue if is an operator helper annotation, otherwise falseIllegalArgumentException - if some parameters were nullConstants.TYPE_ANNOTATION_HELPERCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.