24 package org.lightjason.agentspeak.action.builtin.generic.type;
29 import javax.annotation.Nonnull;
30 import java.util.AbstractMap;
56 protected final Map.Entry<Boolean,
ITerm>
parse( @Nonnull
final String p_value )
60 return new AbstractMap.SimpleImmutableEntry<>(
true,
CRawTerm.
from( Double.parseDouble( p_value ) ) );
62 catch (
final Exception l_exception )
64 return new AbstractMap.SimpleImmutableEntry<>(
false,
CRawTerm.
from( null ) );
action for parsing a number from string.
final Map.Entry< Boolean, ITerm > parse( @Nonnull final String p_value)
parses the input string
static final long serialVersionUID
serial id
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
abstract class to define parsing actions
term structure for simple datatypes