Enum YangBooleanConstantExpr

    • Method Detail

      • values

        public static YangBooleanConstantExpr[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (YangBooleanConstantExpr c : YangBooleanConstantExpr.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static YangBooleanConstantExpr valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getIdentifier

        public QName getIdentifier()
        Description copied from interface: Identifiable
        Return this objects Identifier.
        Specified by:
        getIdentifier in interface Identifiable<QName>
        Returns:
        Object's identifier, must not be null.
      • asFunction

        public YangFunctionCallExpr asFunction()
        Convert this constant into the equivalent function. This function is provided for bridging purposes only.
        Returns:
        Equivalent function invocation.
      • asStringLiteral

        public YangLiteralExpr asStringLiteral()
        Convert this constant into a string literal, i.e. the result of calling string(boolean) function on this constant.
        Returns:
        Literal expression.