Class EnumLiteralResolver


  • public class EnumLiteralResolver
    extends Resolver
    This Resolver retrieves the type for an enum constant.
    Since:
    2.4
    Version:
    2.5
    Author:
    Pascal Filion
    • Constructor Detail

      • EnumLiteralResolver

        public EnumLiteralResolver​(Resolver parent,
                                   IType type,
                                   String enumLiteral)
        Creates a new EnumLiteralResolver.
        Parameters:
        parent - The parent of this resolver, which is never null
        type - The IType of the enum type
        enumLiteral - The fully qualified name of the enum constant
        Throws:
        NullPointerException - If the parent is null
    • Method Detail

      • getConstantName

        public String getConstantName()
        Returns the name of the constant constant.
        Returns:
        The name of the constant without the fully qualified enum type