Class MethodJMethodDef

    • Field Detail

      • returnType

        private final JType returnType
      • name

        private final java.lang.String name
    • Constructor Detail

      • MethodJMethodDef

        MethodJMethodDef​(AbstractJClassDef clazz,
                         int mods,
                         JType returnType,
                         java.lang.String name)
    • Method Detail

      • getReturnType

        JType getReturnType()
      • getName

        public java.lang.String getName()
        Description copied from interface: JClassItem
        Get the name of this element, if there is one.
        Specified by:
        getName in interface JClassItem
        Returns:
        the name, or null if there is none
      • hasAllModifiers

        public boolean hasAllModifiers​(int mods)
        Description copied from interface: JClassItem
        Determine whether this item has all of the modifiers specified by the given bitwise-OR-joined argument.
        Specified by:
        hasAllModifiers in interface JClassItem
        Parameters:
        mods - the modifier(s)
        Returns:
        true if all of the modifiers are present, false otherwise
      • hasAnyModifier

        public boolean hasAnyModifier​(int mods)
        Description copied from interface: JClassItem
        Determine whether this item has any of the modifiers specified by the given bitwise-OR-joined argument.
        Specified by:
        hasAnyModifier in interface JClassItem
        Parameters:
        mods - the modifier(s)
        Returns:
        true if any if the modifiers are present, false otherwise