Class CodeReferenceWrapper

java.lang.Object
no.sikt.graphitron.definitions.helpers.CodeReferenceWrapper
Direct Known Subclasses:
ServiceWrapper, SQLCondition

public abstract class CodeReferenceWrapper extends Object
Class that contains extended information for a code reference.
  • Constructor Details

    • CodeReferenceWrapper

      public CodeReferenceWrapper(CodeReference reference)
    • 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

      public String 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

      public Map<String,no.sikt.graphitron.javapoet.TypeName> getContextFields()
      Returns:
      Map of context argument to be added to the reference call mapped to their types.
    • getReference

      public CodeReference getReference()
      Returns:
      The reference to the external code that this field is related to.
    • getMethod

      public Method getMethod()
      Returns:
      The method that is set by this reference.