Class FormalParameter

  • All Implemented Interfaces:
    ASTNode

    public class FormalParameter
    extends LocalVariable
    A parameter to a method.
    Version:
    1.0
    • Field Detail

      • annotations

        private java.util.List<Annotation> annotations
    • Constructor Detail

      • FormalParameter

        public FormalParameter​(Scanner s,
                               boolean isFinal,
                               Type type,
                               int offs,
                               java.lang.String name,
                               java.util.List<Annotation> annotations)
    • Method Detail

      • getAnnotationCount

        public int getAnnotationCount()
      • toString

        public java.lang.String toString()
        Overridden to return "getType() getName()".
        Overrides:
        toString in class AbstractASTNode
        Returns:
        This parameter, as a string.