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

  • Method Details

    • getGenericReturnType

      public 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 ClassName getClassName()
      Returns:
      Javapoet classname of the referenced class.
    • getContextFields

      public Map<String,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.