Class GraphScopeAnnotationProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.alibaba.graphscope.annotation.GraphScopeAnnotationProcessor
-
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes({"com.alibaba.fastffi.FFIMirror","com.alibaba.fastffi.FFIMirrorDefinition","com.alibaba.graphscope.annotation.GraphType"}) @SupportedSourceVersion(RELEASE_8) public class GraphScopeAnnotationProcessor extends AbstractProcessor
GraphScopeAnnotationProcessor define the process procedure for classes annotated with FFIMirror, FFIMirrorDefinition and GraphType. User shall not use this annotation, as it is mainly used for code generation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
GraphTypeWrapperSuffix
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description GraphScopeAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
parseMessageType(String messageType)
Given one FFIMirror class name, we need to get the foreign type too.boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
-
-
-
Field Detail
-
GraphTypeWrapperSuffix
public static final String GraphTypeWrapperSuffix
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
parseMessageType
public String[] parseMessageType(String messageType)
Given one FFIMirror class name, we need to get the foreign type too. Currently don't support primitive types if message is ffi, we use the foreign type.- Parameters:
messageType
- message types concatenated by ":"- Returns:
- String [0] cxx type, String [1] java type
-
-