Class CodeReferenceWrapper
java.lang.Object
no.sikt.graphitron.definitions.helpers.CodeReferenceWrapper
- Direct Known Subclasses:
ServiceWrapper,SQLCondition
Class that contains extended information for a code reference.
-
Constructor Summary
ConstructorsConstructorDescriptionCodeReferenceWrapper(CodeReference reference) CodeReferenceWrapper(T field, no.sikt.graphql.directives.GenerationDirective directive, no.sikt.graphql.directives.GenerationDirectiveParam param) -
Method Summary
Modifier and TypeMethodDescriptionno.sikt.graphitron.javapoet.ClassNameno.sikt.graphitron.javapoet.TypeName
-
Constructor Details
-
CodeReferenceWrapper
-
CodeReferenceWrapper
public CodeReferenceWrapper(T field, no.sikt.graphql.directives.GenerationDirective directive, no.sikt.graphql.directives.GenerationDirectiveParam param)
-
-
Method Details
-
getGenericReturnType
public no.sikt.graphitron.javapoet.TypeName getGenericReturnType()- Returns:
- The class of the return type for this referenced method.
-
getMethodName
- Returns:
- The reflected method name for this referenced method.
-
getClassName
public no.sikt.graphitron.javapoet.ClassName getClassName()- Returns:
- Javapoet classname of the referenced class.
-
getContextFields
- Returns:
- Map of context argument to be added to the reference call mapped to their types.
-
getReference
- Returns:
- The reference to the external code that this field is related to.
-
getMethod
- Returns:
- The method that is set by this reference.
-