Package org.asciidoctor.jruby.ast.impl
Enum NodeConverter.NodeType
- java.lang.Object
-
- java.lang.Enum<NodeConverter.NodeType>
-
- org.asciidoctor.jruby.ast.impl.NodeConverter.NodeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NodeConverter.NodeType>
- Enclosing class:
- NodeConverter
public static enum NodeConverter.NodeType extends java.lang.Enum<NodeConverter.NodeType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_CLASS
DEFINITIONLIST_CLASS
DEFINITIONLIST_ITEM_CLASS
DOCUMENT_CLASS
INLINE_CLASS
LIST_CLASS
LIST_ITEM_CLASS
SECTION_CLASS
TABLE_CELL_CLASS
TABLE_CLASS
TABLE_COLUMN_CLASS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jruby.RubyClass
getRubyClass(org.jruby.Ruby runtime)
boolean
isInstance(org.jruby.runtime.builtin.IRubyObject object)
static NodeConverter.NodeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NodeConverter.NodeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCK_CLASS
public static final NodeConverter.NodeType BLOCK_CLASS
-
SECTION_CLASS
public static final NodeConverter.NodeType SECTION_CLASS
-
DOCUMENT_CLASS
public static final NodeConverter.NodeType DOCUMENT_CLASS
-
INLINE_CLASS
public static final NodeConverter.NodeType INLINE_CLASS
-
LIST_CLASS
public static final NodeConverter.NodeType LIST_CLASS
-
DEFINITIONLIST_CLASS
public static final NodeConverter.NodeType DEFINITIONLIST_CLASS
-
DEFINITIONLIST_ITEM_CLASS
public static final NodeConverter.NodeType DEFINITIONLIST_ITEM_CLASS
-
LIST_ITEM_CLASS
public static final NodeConverter.NodeType LIST_ITEM_CLASS
-
TABLE_CLASS
public static final NodeConverter.NodeType TABLE_CLASS
-
TABLE_COLUMN_CLASS
public static final NodeConverter.NodeType TABLE_COLUMN_CLASS
-
TABLE_CELL_CLASS
public static final NodeConverter.NodeType TABLE_CELL_CLASS
-
-
Method Detail
-
values
public static NodeConverter.NodeType[] 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 (NodeConverter.NodeType c : NodeConverter.NodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeConverter.NodeType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getRubyClass
public org.jruby.RubyClass getRubyClass(org.jruby.Ruby runtime)
-
isInstance
public boolean isInstance(org.jruby.runtime.builtin.IRubyObject object)
- Parameters:
object
-- Returns:
true
if the given Ruby object is recognized as this node type.
-
-