org.jruby.yaml
Class JRubyConstructor
java.lang.Object
org.jvyamlb.BaseConstructorImpl
org.jvyamlb.SafeConstructorImpl
org.jvyamlb.ConstructorImpl
org.jruby.yaml.JRubyConstructor
- All Implemented Interfaces:
- org.jvyamlb.Constructor
public class JRubyConstructor
- extends org.jvyamlb.ConstructorImpl
- Author:
- Ola Bini
Nested classes/interfaces inherited from class org.jvyamlb.BaseConstructorImpl |
org.jvyamlb.BaseConstructorImpl.YamlMultiAdapter |
Nested classes/interfaces inherited from interface org.jvyamlb.Constructor |
org.jvyamlb.Constructor.RecursiveFixer, org.jvyamlb.Constructor.YamlConstructor, org.jvyamlb.Constructor.YamlMultiConstructor |
Fields inherited from class org.jvyamlb.SafeConstructorImpl |
YMD_REGEXP |
Fields inherited from class org.jvyamlb.BaseConstructorImpl |
CONSTRUCT_MAPPING, CONSTRUCT_PRIMITIVE, CONSTRUCT_PRIVATE, CONSTRUCT_SCALAR, CONSTRUCT_SEQUENCE |
Method Summary |
static void |
addConstructor(java.lang.String tag,
org.jvyamlb.Constructor.YamlConstructor ctor)
|
static void |
addMultiConstructor(java.lang.String tagPrefix,
org.jvyamlb.Constructor.YamlMultiConstructor ctor)
|
static java.lang.Object |
constructJava(org.jvyamlb.Constructor ctor,
java.lang.String pref,
org.jvyamlb.nodes.Node node)
|
java.lang.Object |
constructPrivateType(org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRuby(org.jvyamlb.Constructor ctor,
RubyClass theCls,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRuby(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubyException(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubyInt(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubyMap(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
|
java.lang.Object |
constructRubyMapping(org.jvyamlb.nodes.Node node)
|
java.lang.Object |
constructRubyPairs(org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubyRange(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubyRegexp(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
java.lang.Object |
constructRubyScalar(org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubySequence(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
|
java.lang.Object |
constructRubySequence(org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubyString(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructRubyStruct(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructUndefined(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlBinary(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlBool(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlFloat(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlInt(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlMap(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlNull(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlOmap(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlPairs(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlSeq(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlSet(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlStr(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlTimestamp(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
constructYamlTimestampYMD(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
static java.lang.Object |
findAndCreateFromCustomTagging(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
|
org.jvyamlb.Constructor.YamlConstructor |
getYamlConstructor(java.lang.Object key)
|
org.jvyamlb.Constructor.YamlMultiConstructor |
getYamlMultiConstructor(java.lang.Object key)
|
java.util.regex.Pattern |
getYamlMultiRegexp(java.lang.Object key)
|
java.util.Set |
getYamlMultiRegexps()
|
Methods inherited from class org.jvyamlb.ConstructorImpl |
main |
Methods inherited from class org.jvyamlb.SafeConstructorImpl |
constructSpecializedMap, constructSpecializedSequence |
Methods inherited from class org.jvyamlb.BaseConstructorImpl |
addFixer, checkData, constructDocument, constructMapping, constructObject, constructPairs, constructPrimitive, constructScalar, constructSequence, doRecursionFix, eachDocument, getData, getNullNode, iterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRubyConstructor
public JRubyConstructor(IRubyObject receiver,
org.jvyamlb.Composer composer)
getYamlConstructor
public org.jvyamlb.Constructor.YamlConstructor getYamlConstructor(java.lang.Object key)
- Overrides:
getYamlConstructor
in class org.jvyamlb.ConstructorImpl
getYamlMultiConstructor
public org.jvyamlb.Constructor.YamlMultiConstructor getYamlMultiConstructor(java.lang.Object key)
- Overrides:
getYamlMultiConstructor
in class org.jvyamlb.ConstructorImpl
getYamlMultiRegexp
public java.util.regex.Pattern getYamlMultiRegexp(java.lang.Object key)
- Overrides:
getYamlMultiRegexp
in class org.jvyamlb.ConstructorImpl
getYamlMultiRegexps
public java.util.Set getYamlMultiRegexps()
- Overrides:
getYamlMultiRegexps
in class org.jvyamlb.ConstructorImpl
addConstructor
public static void addConstructor(java.lang.String tag,
org.jvyamlb.Constructor.YamlConstructor ctor)
addMultiConstructor
public static void addMultiConstructor(java.lang.String tagPrefix,
org.jvyamlb.Constructor.YamlMultiConstructor ctor)
constructRubyScalar
public java.lang.Object constructRubyScalar(org.jvyamlb.nodes.Node node)
constructPrivateType
public java.lang.Object constructPrivateType(org.jvyamlb.nodes.Node node)
- Specified by:
constructPrivateType
in interface org.jvyamlb.Constructor
- Overrides:
constructPrivateType
in class org.jvyamlb.BaseConstructorImpl
constructRubySequence
public java.lang.Object constructRubySequence(org.jvyamlb.nodes.Node node)
constructRubyMapping
public java.lang.Object constructRubyMapping(org.jvyamlb.nodes.Node node)
constructRubyPairs
public java.lang.Object constructRubyPairs(org.jvyamlb.nodes.Node node)
constructYamlNull
public static java.lang.Object constructYamlNull(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlBool
public static java.lang.Object constructYamlBool(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlOmap
public static java.lang.Object constructYamlOmap(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlPairs
public static java.lang.Object constructYamlPairs(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlSet
public static java.lang.Object constructYamlSet(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlStr
public static java.lang.Object constructYamlStr(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlSeq
public static java.lang.Object constructYamlSeq(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlMap
public static java.lang.Object constructYamlMap(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructUndefined
public static java.lang.Object constructUndefined(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlTimestamp
public static java.lang.Object constructYamlTimestamp(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlTimestampYMD
public static java.lang.Object constructYamlTimestampYMD(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlInt
public static java.lang.Object constructYamlInt(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlFloat
public static java.lang.Object constructYamlFloat(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructYamlBinary
public static java.lang.Object constructYamlBinary(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructJava
public static java.lang.Object constructJava(org.jvyamlb.Constructor ctor,
java.lang.String pref,
org.jvyamlb.nodes.Node node)
constructRubyException
public static java.lang.Object constructRubyException(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
constructRubyStruct
public static java.lang.Object constructRubyStruct(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
constructRuby
public static java.lang.Object constructRuby(org.jvyamlb.Constructor ctor,
RubyClass theCls,
org.jvyamlb.nodes.Node node)
constructRuby
public static java.lang.Object constructRuby(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
constructRubyRegexp
public static java.lang.Object constructRubyRegexp(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructRubyRange
public static java.lang.Object constructRubyRange(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
findAndCreateFromCustomTagging
public static java.lang.Object findAndCreateFromCustomTagging(org.jvyamlb.Constructor ctor,
org.jvyamlb.nodes.Node node)
constructRubyInt
public static java.lang.Object constructRubyInt(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
constructRubyString
public static java.lang.Object constructRubyString(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
constructRubyMap
public static java.lang.Object constructRubyMap(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
constructRubySequence
public static java.lang.Object constructRubySequence(org.jvyamlb.Constructor ctor,
java.lang.String tag,
org.jvyamlb.nodes.Node node)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.