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 false
IllegalArgumentException
- if some parameters were null
Constants.TYPE_IN
public 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 null
isIn(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 null
isIn(CompileEnvironment, TypeMirror)
public static boolean isOut(CompileEnvironment environment, TypeMirror type)
environment
- current environmenttype
- target typetrue
if represents an output, otherwise false
IllegalArgumentException
- if some parameters were null
Constants.TYPE_IN
public static boolean isOperatorHelper(CompileEnvironment environment, TypeMirror type)
environment
- current environmenttype
- target typetrue
if is an operator helper annotation, otherwise false
IllegalArgumentException
- if some parameters were null
Constants.TYPE_ANNOTATION_HELPER
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.