Class ExtendedParameter

java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
io.micronaut.ast.groovy.utils.ExtendedParameter
All Implemented Interfaces:
groovy.lang.groovydoc.GroovydocHolder<org.codehaus.groovy.ast.AnnotatedNode>, org.codehaus.groovy.ast.NodeMetaDataHandler

@Internal public final class ExtendedParameter extends org.codehaus.groovy.ast.AnnotatedNode
This class was created to pass to the GroovyAnnotationMetadataBuilder because the method node the parameter belongs to is not available from the Parameter class itself. The method node is necessary to support argument annotation metadata inheritance.
Since:
1.0
Author:
James Kleeh
  • Field Summary

    Fields inherited from interface groovy.lang.groovydoc.GroovydocHolder

    DOC_COMMENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendedParameter(org.codehaus.groovy.ast.MethodNode methodNode, org.codehaus.groovy.ast.Parameter parameter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.codehaus.groovy.ast.MethodNode
     
    org.codehaus.groovy.ast.Parameter
     
    int
     

    Methods inherited from class org.codehaus.groovy.ast.AnnotatedNode

    addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic

    Methods inherited from class org.codehaus.groovy.ast.ASTNode

    copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandler

    copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
  • Constructor Details

    • ExtendedParameter

      public ExtendedParameter(org.codehaus.groovy.ast.MethodNode methodNode, org.codehaus.groovy.ast.Parameter parameter)
      Parameters:
      methodNode - The method node that contains the parameter
      parameter - The parameter
  • Method Details

    • getMethodNode

      public org.codehaus.groovy.ast.MethodNode getMethodNode()
      Returns:
      The method node that contains the parameter
    • getParameter

      public org.codehaus.groovy.ast.Parameter getParameter()
      Returns:
      The parameter
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object