Class GrapeSkipAnnotationProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.alibaba.graphscope.annotation.GrapeSkipAnnotationProcessor
-
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("com.alibaba.graphscope.annotation.GrapeSkip") @SupportedSourceVersion(RELEASE_8) public class GrapeSkipAnnotationProcessor extends AbstractProcessor
-
-
Field Summary
Fields Modifier and Type Field Description Messager
messager
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description GrapeSkipAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMethod(com.squareup.javapoet.TypeSpec.Builder builder, String[] className, int edMultiplyMsg, int msgNum)
void
addVEMethod(com.squareup.javapoet.TypeSpec.Builder builder, String[] className, int edNum)
method for getUnused with only vd + edString
checkAndGenerate(TypeElement typeElement, GrapeSkip grapeSkip)
void
fillInSkipClasses(com.squareup.javapoet.TypeSpec.Builder builder, String[] classNames)
void
generateClassNames(int numClasses, String[] classNames, String[] vdTypes, String[] edTypes)
void
generateClassNames(int numClasses, String[] classNames, String[] vdTypes, String[] edTypes, String[] msgTypes)
boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
-
-
-
Field Detail
-
messager
public Messager messager
-
-
Method Detail
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
- Parameters:
annotations
-roundEnv
-
-
checkAndGenerate
public String checkAndGenerate(TypeElement typeElement, GrapeSkip grapeSkip)
-
generateClassNames
public void generateClassNames(int numClasses, String[] classNames, String[] vdTypes, String[] edTypes, String[] msgTypes)
-
generateClassNames
public void generateClassNames(int numClasses, String[] classNames, String[] vdTypes, String[] edTypes)
-
fillInSkipClasses
public void fillInSkipClasses(com.squareup.javapoet.TypeSpec.Builder builder, String[] classNames)
-
addMethod
public void addMethod(com.squareup.javapoet.TypeSpec.Builder builder, String[] className, int edMultiplyMsg, int msgNum)
-
addVEMethod
public void addVEMethod(com.squareup.javapoet.TypeSpec.Builder builder, String[] className, int edNum)
method for getUnused with only vd + ed
-
-