Commits

Taku Miyakawa committed f503278

Renames Value#value() to newValue()

  • Participants
  • Parent commits fcc708d
  • Branches issue515-rename-child-value-functions-methods

Comments (0)

Files changed (80)

src/main/java/org/kink_lang/kink/ModuleFactory.java

      */
     public Value getModule() {
         // Parent of the module holding 'string' method, not to be imported by 'use' method
-        Value moduleParent = Value.value();
+        Value moduleParent = Value.newValue();
         Value module = moduleParent.newChild();
         module.define( getDefinitionClass() );
         moduleParent.set( SET_SHOW , Value.value( showFun( module , getName() ) ) );

src/main/java/org/kink_lang/kink/Modules.java

         Set< String > privateVerbSymbols = privateVerbSymbols( env );
 
         // Private methods to the parent, for test
-        Value moduleParent = Value.value();
+        Value moduleParent = Value.newValue();
         Fun nameFun = Fun.ofConstant( Value.value( moduleName ) );
         moduleParent.set( SET_SHOW , Value.value( nameFun ) );
         copyVars( moduleParent , env , privateVerbSymbols );

src/main/java/org/kink_lang/kink/Value.java

      * @return
      *      A new child of {@code base}.
      */
-    public static Value value() {
+    public static Value newValue() {
         return base().newChild();
     }
 

src/main/java/org/kink_lang/kink/internal/Identities.java

 
 
     /** Prototype of identity values. */
-    private static final Value IDENTITY_PROTO = Value.value();
+    private static final Value IDENTITY_PROTO = Value.newValue();
 
 
     static {

src/main/java/org/kink_lang/kink/internal/box/BoxingValues.java

 
     /** Registers and returns a new prptotype. */
     private static synchronized Value newPrototype( Class< ? > klass ) {
-        Value prototype = Value.value();
+        Value prototype = Value.newValue();
         SETTINGUP_PROTOTYPES.put( klass , prototype );
         try {
             setupPrototype( prototype , klass );

src/main/java/org/kink_lang/kink/internal/module/Core.java

         @Define
         public Value new_value( Value ... args ) {
             Checker.check( args.length % 2 == 0 , Messages::notEvenNumberOfArguments );
-            Value owner = Value.value();
+            Value owner = Value.newValue();
             List< String > symbols = Streams.rangeStepping( 0 , args.length , 2 )
                 .mapToObj( symbolIndex -> args[ symbolIndex ].asString( () -> "\\" + symbolIndex ) )
                 .collect( Collectors.toList() );

src/test/java/org/kink_lang/kink/FunTest.java

 
 
     /** Fixture value. */
-    private final Value value = Value.value();
+    private final Value value = Value.newValue();
 
 
-    private final Value result = Value.value();
+    private final Value result = Value.newValue();
 
 
-    private final Value receiver = Value.value();
+    private final Value receiver = Value.newValue();
 
 
     private final Area area
     }
 
 
-    private final Value arg0 = Value.value();
-    private final Value arg1 = Value.value();
-    private final Value arg2 = Value.value();
-    private final Value arg3 = Value.value();
+    private final Value arg0 = Value.newValue();
+    private final Value arg1 = Value.newValue();
+    private final Value arg2 = Value.newValue();
+    private final Value arg3 = Value.newValue();
 
 
     @Test
     }
 
 
-    private final Value voxxx = Value.value();
+    private final Value voxxx = Value.newValue();
 
 
-    private final Value twift = Value.value();
+    private final Value twift = Value.newValue();
 
 
     @Test
     @Test( expected = KinkException.class )
     public void constant_fun_require_no_args() {
         Fun fun = Fun.ofConstant( value );
-        fun.call( Value.value() );
+        fun.call( Value.newValue() );
     }
 
 

src/test/java/org/kink_lang/kink/GetSiteTest.java

     }
 
 
-    private final Value owner = Value.value();
+    private final Value owner = Value.newValue();
 
 
     private final Value voxxx = Value.value( "Voxxx" );
 
     @Test
     public void get_repeatedly() {
-        Value value = Value.value();
+        Value value = Value.newValue();
         Value content = Value.value( "VOXXX" );
         value.set( new SetSite( "voxxx" ) , content );
         GetSite getVoxxx = new GetSite( "voxxx" );

src/test/java/org/kink_lang/kink/SetSiteTest.java

     }
 
 
-    private final Value ownerFoo = Value.value();
+    private final Value ownerFoo = Value.newValue();
 
 
-    private final Value ownerBar = Value.value();
+    private final Value ownerBar = Value.newValue();
 
 
-    private final Value ownerBaz = Value.value();
+    private final Value ownerBaz = Value.newValue();
 
 
     private final Value voxxx = Value.value( "Voxxx" );
     public void test_assignment_notified_by_setByArgs() {
         SetSite fooBarSetSite = new SetSite( Arrays.asList( "foo" , "bar" ) );
         SetSite pingPongSetSite = new SetSite( Arrays.asList( "ping" , "pong" ) );
-        Value fooBarVal = Value.value();
-        Value pingPongVal = Value.value();
-        fooBarSetSite.setByArgs( fooBarVal , Value.value() , Value.value() , null );
-        pingPongSetSite.setByArgs( pingPongVal , Value.value() , Value.value() , null );
+        Value fooBarVal = Value.newValue();
+        Value pingPongVal = Value.newValue();
+        fooBarSetSite.setByArgs( fooBarVal , Value.newValue() , Value.newValue() , null );
+        pingPongSetSite.setByArgs( pingPongVal , Value.newValue() , Value.newValue() , null );
         assertThat( FooAssignmentListener.prevValue , is( fooBarVal ) );
         assertThat( FooAssignmentListener.prevSymbolSuperset
                 , is( Arrays.asList( "foo" , "bar" ) ) );
     public void test_assignment_notified_by_setByArray() {
         SetSite fooBarSetSite = new SetSite( Arrays.asList( "foo" , "bar" ) );
         SetSite pingPongSetSite = new SetSite( Arrays.asList( "ping" , "pong" ) );
-        Value fooBarVal = Value.value();
-        Value pingPongVal = Value.value();
-        fooBarSetSite.setByArray( fooBarVal , new Value[] { Value.value() , Value.value() } );
-        pingPongSetSite.setByArray( pingPongVal , new Value[] { Value.value() , Value.value() } );
+        Value fooBarVal = Value.newValue();
+        Value pingPongVal = Value.newValue();
+        fooBarSetSite.setByArray( fooBarVal , new Value[] { Value.newValue() , Value.newValue() } );
+        pingPongSetSite.setByArray( pingPongVal , new Value[] { Value.newValue() , Value.newValue() } );
         assertThat( FooAssignmentListener.prevValue , is( fooBarVal ) );
         assertThat( FooAssignmentListener.prevSymbolSuperset
                 , is( Arrays.asList( "foo" , "bar" ) ) );
     }
 
 
-    private final Value owner = Value.value();
+    private final Value owner = Value.newValue();
 
 
     /** Concurrency count of a test. */
                 for ( int varIndex = 0 ; varIndex < VARS_PER_TASK ; ++ varIndex ) {
                     String symbol = makeSymbol( taskIndex , varIndex );
                     SetSite setSite = new SetSite( symbol );
-                    setSite.setByArgs( owner , Value.value() , null , null );
+                    setSite.setByArgs( owner , Value.newValue() , null , null );
                 }
                 return null;
             }
                 for ( int varIndex = 0 ; varIndex < VARS_PER_TASK ; ++ varIndex ) {
                     String symbol = makeSymbol( taskIndex , varIndex );
                     SetSite setSite = new SetSite( symbol );
-                    setSite.setByArray( owner , new Value[] { Value.value() } );
+                    setSite.setByArray( owner , new Value[] { Value.newValue() } );
                 }
                 return null;
             }

src/test/java/org/kink_lang/kink/TraceTest.java

 
 
     /** Fixture result value. */
-    private final Value result = Value.value();
+    private final Value result = Value.newValue();
 
 
     @Test
 
     @Test
     public void currentTraces_on_level1() {
-        Value value = Value.value();
+        Value value = Value.newValue();
         Fun fun = Fun.builder().build( receiver -> {
             assertThat( Trace.currentTraces()
                     , is( Collections.singletonList( new Trace( "method" , null ) ) ) );

src/test/java/org/kink_lang/kink/ValueTest.java

 
 
     /** Value to test. */
-    private final Value value = Value.value();
+    private final Value value = Value.newValue();
 
 
     /** Fixture content value. */
-    private final Value content = Value.value();
+    private final Value content = Value.newValue();
 
 
     /** Fixture key string. */
 
 
     /** Fixture first value. */
-    private final Value first = Value.value();
+    private final Value first = Value.newValue();
 
 
     /** Fixture second value. */
-    private final Value second = Value.value();
+    private final Value second = Value.newValue();
 
 
     /** Fixture first revised value.*/
-    private final Value firstRevised = Value.value();
+    private final Value firstRevised = Value.newValue();
 
 
     /** Fixture second revised value.*/
-    private final Value secondRevised = Value.value();
+    private final Value secondRevised = Value.newValue();
 
 
     /** Fixture owner value. */
-    private final Value owner = Value.value();
+    private final Value owner = Value.newValue();
 
 
     /** Fixture receiver value. */
-    private final Value receiver = Value.value();
+    private final Value receiver = Value.newValue();
 
 
-    private final Value notFunVal = Value.value();
+    private final Value notFunVal = Value.newValue();
 
 
     @Test( expected = UnsupportedOperationException.class )
 
     @Test
     public void new_value_test() {
-        Value value = Value.value();
-        Value anotherValue = Value.value();
+        Value value = Value.newValue();
+        Value anotherValue = Value.newValue();
         assertThat( value , not( sameInstance( anotherValue ) ) );
         assertThat( value.unbox() , is( (Object) null ) );
     }
 
     @Test
     public void testSetGetOverride() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.newChild();
 
-        Value content = Value.value();
-        Value contentOverride = Value.value();
+        Value content = Value.newValue();
+        Value contentOverride = Value.newValue();
 
         assertThat( parent.has( new GetSite( "key" ) ) , is( false ) );
         assertThat( child.has( new GetSite( "key" ) ) , is( false ) );
     }
 
 
-    private final Value voxxx = Value.value();
+    private final Value voxxx = Value.newValue();
 
 
-    private final Value rez = Value.value();
+    private final Value rez = Value.newValue();
 
 
-    private final Value hallogallo = Value.value();
+    private final Value hallogallo = Value.newValue();
 
 
-    private final Value twift = Value.value();
+    private final Value twift = Value.newValue();
 
 
     @Test
     @Test
     public void isOrSame_true() {
 
-        Value child = Value.value();
+        Value child = Value.newValue();
         Value grandchild = child.newChild();
 
         assertThat( Value.base().isSubOf( Value.base() ) , is( true ) );
 
     @Test
     public void isOrSame_false() {
-        Value child = Value.value();
+        Value child = Value.newValue();
         Value grandchild = child.newChild();
-        Value stranger = Value.value();
+        Value stranger = Value.newValue();
         assertThat( Value.base().isSubOf( child ) , is( false ) );
         assertThat( child.isSubOf( grandchild ) , is( false ) );
         assertThat( Value.base().isSubOf( grandchild ) , is( false ) );
         Fun var_missing = Fun.builder().build( ( actualReceiver , arg ) -> {
             assertThat( actualReceiver , is( receiver ) );
             assertThat( arg.asString( () -> "" ) , is( "TWIFT" ) );
-            return Value.value();
+            return Value.newValue();
         } );
         receiver.set( new SetSite( "var_missing" ) , Value.value( var_missing ) );
         try {
         Fun var_missing = Fun.builder().build( ( actualReceiver , arg ) -> {
             assertThat( actualReceiver , is( receiver ) );
             assertThat( arg.asString( () -> "" ) , is( "TWIFT" ) );
-            return Value.value();
+            return Value.newValue();
         } );
         receiver.set( new SetSite( "var_missing" ) , Value.value( var_missing ) );
         try {
         Fun var_missing = Fun.builder().build( ( actualReceiver , arg ) -> {
             assertThat( actualReceiver , is( receiver ) );
             assertThat( arg.asString( () -> "" ) , is( "TWIFT" ) );
-            return Value.value( new ValueList( Value.value() , Value.value() ) );
+            return Value.value( new ValueList( Value.newValue() , Value.newValue() ) );
         } );
         receiver.set( new SetSite( "var_missing" ) , Value.value( var_missing ) );
         try {
         Fun var_missing = Fun.builder().build( ( actualReceiver , arg ) -> {
             assertThat( actualReceiver , is( receiver ) );
             assertThat( arg.asString( () -> "" ) , is( "TWIFT" ) );
-            return Value.value( new ValueList( Value.value() , Value.value() ) );
+            return Value.value( new ValueList( Value.newValue() , Value.newValue() ) );
         } );
         receiver.set( new SetSite( "var_missing" ) , Value.value( var_missing ) );
         try {
 
     @Test
     public void can_get_vars() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         parent.set( new SetSite( "first" ) , first );
         Value me = parent.newChild();
         me.set( new SetSite( "second" ) , second );
 
     @Test
     public void can_get_var_symbols() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         parent.set( new SetSite( "first" ) , first );
         Value me = parent.newChild();
         me.set( new SetSite( "second" ) , second );
 
     @Test
     public void test_getSolidVarOwner() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.newChild();
 
         parent.set( new SetSite( "template" ) , value );
     public void cannot_match_if_op_match_returns_not_bool() {
         value.set( new SetSite( "op_match" ) , Value.value(
                     Fun.builder().build( ( pattern , kase ) -> Value.value( 100 ) ) ) );
-        value.matches( Value.value() );
+        value.matches( Value.newValue() );
     }
 
 
     public void canne_if_eq_p_method_returns_not_bool() {
         value.set( new SetSite( "op_eq" ) , Value.value(
                     Fun.builder().build( ( receiver , arg ) -> Value.value( null ) ) ) );
-        value.equals( Value.value() );
+        value.equals( Value.newValue() );
     }
 
 

src/test/java/org/kink_lang/kink/ValueWrapperTest.java

 
     @Test
     public void test_wrap_and_unwrap() {
-        Value value = Value.value();
+        Value value = Value.newValue();
         ValueWrapper wrapper = new ValueWrapper( value );
         assertThat( wrapper.getValue() , is( value ) );
     }
 
     @Test
     public void test_toString() {
-        Value hoge = Value.value();
+        Value hoge = Value.newValue();
         hoge.set( new SetSite( "show" ) , Value.value( Fun.ofConstant( Value.value( "hoge" ) ) ) );
         ValueWrapper hogeWrapper = new ValueWrapper( hoge );
         assertThat( hogeWrapper.toString() , is( "value_wrapper(hoge)" ) );
 
     @Test
     public void test_equality() {
-        Value hoge = Value.value();
-        Value fuga = Value.value();
+        Value hoge = Value.newValue();
+        Value fuga = Value.newValue();
 
         EqualityVerifier verifier = new EqualityVerifier();
         verifier.group( "hoge"

src/test/java/org/kink_lang/kink/VarTest.java

 
 
     /** Fixture owner value. */
-    private final Value owner = Value.value();
+    private final Value owner = Value.newValue();
 
 
     /** Fixture content value. */
-    private final Value content = Value.value();
+    private final Value content = Value.newValue();
 
 
     @Test
         = new Area( new Program( "get_site.kn" , "'get_site'" ) , 0 );
 
 
-    private final Value result = Value.value();
+    private final Value result = Value.newValue();
 
 
     @Test
 
     @Test
     public void test_getSolid() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.newChild();
         parent.set( new SetSite( "common" ) , content );
         child.set( new SetSite( "specific" ) , content );
     @Test
     public void equality_test() {
 
-        Value owner1 = Value.value();
-        Value owner2 = Value.value();
+        Value owner1 = Value.newValue();
+        Value owner2 = Value.newValue();
 
         EqualityVerifier verifier = new EqualityVerifier();
 

src/test/java/org/kink_lang/kink/funbuilder/FunBuilderTest.java

 
 
     /** Receiver of function calls. */
-    private final Value receiver = Value.value();
+    private final Value receiver = Value.newValue();
 
 
     /** First argument of function calls. */
-    private final Value arg0 = Value.value();
+    private final Value arg0 = Value.newValue();
 
 
     /** Second argument of function calls. */
-    private final Value arg1 = Value.value();
+    private final Value arg1 = Value.newValue();
 
 
     /** Third argument of function calls. */
-    private final Value arg2 = Value.value();
+    private final Value arg2 = Value.newValue();
 
 
     /** Fourth argument of function calls. */
-    private final Value arg3 = Value.value();
+    private final Value arg3 = Value.newValue();
 
 
     /** Result of function calls. */
-    private final Value result = Value.value();
+    private final Value result = Value.newValue();
 
 
     // Fun.Builder for 0ary functions {{{1

src/test/java/org/kink_lang/kink/internal/ArgumentsTest.java

 public class ArgumentsTest {
 
 
-    private final Value a = Value.value();
-    private final Value b = Value.value();
-    private final Value c = Value.value();
-    private final Value d = Value.value();
-    private final Value e = Value.value();
+    private final Value a = Value.newValue();
+    private final Value b = Value.newValue();
+    private final Value c = Value.newValue();
+    private final Value d = Value.newValue();
+    private final Value e = Value.newValue();
 
 
     @Test( expected = UnsupportedOperationException.class )

src/test/java/org/kink_lang/kink/internal/BaseMethodsTest.java

 
 
     /** Fixture value. */
-    private final Value value = Value.value();
+    private final Value value = Value.newValue();
 
 
     /** Fixture value. */
-    private final Value target = Value.value();
+    private final Value target = Value.newValue();
 
 
-    private final Value foo = Value.value();
+    private final Value foo = Value.newValue();
 
 
-    private final Value bar = Value.value();
+    private final Value bar = Value.newValue();
 
 
     // Tests VALUE.parent {{{1
 
     @Test
     public void parent_ofAValue() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.newChild();
         assertThat( methods.parent( child ) , is( parent ) );
     }
     @Test
     public void parent_isDefined() {
 
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.newChild();
 
         assertThat( child.call( new GetSite( "parent" ) ) , is( parent ) );
 
     @Test
     public void test_new_child_without_vars() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.call( new GetSite( "new_child" ) );
         assertThat( child.getParent() , is( parent ) );
     }
 
     @Test
     public void test_new_child_with_vars() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.call( new GetSite( "new_child" )
                 , Value.value( "foo" )
                 , foo
 
     @Test
     public void test_var_missing_returns_default_action_for_type_testing_functions() {
-        Value value = Value.value();
+        Value value = Value.newValue();
         GetSite var_missing = new GetSite( "var_missing" );
         ValueList result = value.call( var_missing , Value.value( "something??" ) ).asList( () -> "" );
         assertThat( result.getElements().size() , is( 1 ) );
 
     @Test
     public void test_var_missing_calls_extend_base_var_missing() throws Throwable {
-        Value value = Value.value();
+        Value value = Value.newValue();
         final Value expectedResult = Value.value( new ValueList( Value.value( 42 ) ) );
         Value funVal = Value.value( Fun.builder().build( ( receiver , arg ) -> {
             assertThat( arg , is( Value.value( "TWIFT" ) ) );
 
     @Test
     public void get_identity_value() {
-        Value value1 = Value.value();
+        Value value1 = Value.newValue();
         Value identity1a = value1.call( new GetSite( "identity" ) );
         Value identity1b = value1.call( new GetSite( "identity" ) );
         assertThat( identity1a , is( identity1b ) );
-        Value value2 = Value.value();
+        Value value2 = Value.newValue();
         Value identity2 = value2.call( new GetSite( "identity" ) );
         assertThat( identity1a , not( identity2 ) );
     }
 
     @Test
     public void matches_continues_to_eq_p() throws Throwable {
-        final Value result = Value.value();
+        final Value result = Value.newValue();
         mockery.checking( new Expectations() { {
             oneOf( equalToP ).run( value , target );
             will( returnValue( result ) );
     /** For example: {@code %'[a-z]+' = 'abc'} terminates successfully. */
     @Test
     public void test_op_set_succeeds() throws Throwable {
-        final Value pattern = Value.value();
-        final Value kase = Value.value();
+        final Value pattern = Value.newValue();
+        final Value kase = Value.newValue();
         final Fun op_match = mockery.mock( StubFun.class , "op_match" );
         mockery.checking( new Expectations() { {
             oneOf( op_match ).run( pattern , kase );
     /** For example: {@code %'[a-z]+' = 'XYZ'} throws an exception. */
     @Test( expected = KinkException.class )
     public void test_op_set_fails() throws Throwable {
-        final Value pattern = Value.value();
-        final Value kase = Value.value();
+        final Value pattern = Value.newValue();
+        final Value kase = Value.newValue();
         final Fun op_match = mockery.mock( StubFun.class , "op_match" );
         mockery.checking( new Expectations() { {
             oneOf( op_match ).run( pattern , kase );
 
     @Test
     public void test_to_str_for_base_child_returns_something() {
-        assertThat( Value.value().call( TO_STR ).asString( () -> "" )
+        assertThat( Value.newValue().call( TO_STR ).asString( () -> "" )
                 , is( String.class ) );
     }
 
 
     @Test
     public void switch_branches_to_something() throws Throwable {
-        final Value kase = Value.value();
+        final Value kase = Value.newValue();
         final Fun aMatches = mockery.mock( StubFun.class , "aMatches" );
         // This shall match
         final Fun bMatches = mockery.mock( StubFun.class , "bMatches" );
         final Fun cMatches = mockery.mock( StubFun.class , "cMatches" );
-        final Value aPat = Value.value();
-        final Value bPat = Value.value();
-        final Value cPat = Value.value();
+        final Value aPat = Value.newValue();
+        final Value bPat = Value.newValue();
+        final Value cPat = Value.newValue();
         final Fun aBody = mockery.mock( StubFun.class , "aBody" );
         final Fun bBody = mockery.mock( StubFun.class , "bBody" );
         final Fun cBody = mockery.mock( StubFun.class , "cBody" );
 
     @Test
     public void switch_branches_to_nothing() throws Throwable {
-        final Value kase = Value.value();
+        final Value kase = Value.newValue();
         final Fun aMatches = mockery.mock( StubFun.class , "aMatches" );
         final Fun bMatches = mockery.mock( StubFun.class , "bMatches" );
-        final Value aPat = Value.value();
-        final Value bPat = Value.value();
+        final Value aPat = Value.newValue();
+        final Value bPat = Value.newValue();
         final Fun aBody = mockery.mock( StubFun.class , "aBody" );
         final Fun bBody = mockery.mock( StubFun.class , "bBody" );
         aPat.set( new SetSite( "op_match" ) , Value.value( aMatches ) );
 
     @Test( expected = KinkException.class )
     public void switch_fails_if_the_number_or_args_is_not_even() {
-        Value kase = Value.value();
+        Value kase = Value.newValue();
         Fun aMatches = mockery.mock( StubFun.class , "aMatches" );
-        Value aPat = Value.value();
+        Value aPat = Value.newValue();
         Fun aBody = mockery.mock( StubFun.class , "aBody" );
         aPat.set( new SetSite( "op_match" ) , Value.value( aMatches ) );
         Value actualResult = kase.call( new GetSite( "switch" )
-                , aPat , Value.value( aBody ) , Value.value() );
+                , aPat , Value.value( aBody ) , Value.newValue() );
         assertThat( actualResult , is( Value.base() ) );
     }
 
 
     @Test
     public void child_of_base_value_cannot_be_converted_to_any_class_other_than_object() {
-        assertThat( Value.value().call( CAN_INTO_P , Value.value( Integer.class ) ).asBool( () -> "" )
+        assertThat( Value.newValue().call( CAN_INTO_P , Value.value( Integer.class ) ).asBool( () -> "" )
                 , is( false ) );
-        assertThat( Value.value().call( CAN_INTO_P , Value.value( int.class ) ).asBool( () -> "" )
+        assertThat( Value.newValue().call( CAN_INTO_P , Value.value( int.class ) ).asBool( () -> "" )
                 , is( false ) );
-        assertThat( Value.value().call( CAN_INTO_P , Value.value( Number.class ) ).asBool( () -> "" )
+        assertThat( Value.newValue().call( CAN_INTO_P , Value.value( Number.class ) ).asBool( () -> "" )
                 , is( false ) );
-        assertThat( Value.value().call( CAN_INTO_P , Value.value( String.class ) ).asBool( () -> "" )
+        assertThat( Value.newValue().call( CAN_INTO_P , Value.value( String.class ) ).asBool( () -> "" )
                 , is( false ) );
-        assertThat( Value.value().call( CAN_INTO_P , Value.value( Object.class ) ).asBool( () -> "" )
+        assertThat( Value.newValue().call( CAN_INTO_P , Value.value( Object.class ) ).asBool( () -> "" )
                 , is( true ) );
     }
 
 
     @Test
     public void test_conversion_of_base_child_to_object_class_returns_value_wrapper() {
-        Value value = Value.value();
+        Value value = Value.newValue();
         Value result = value.call( INTO , Value.value( Object.class ) );
         ValueWrapper wrapper = (ValueWrapper) result.unbox();
         assertThat( wrapper.getValue() , is( value ) );
 
     @Test( expected = KinkException.class )
     public void test_conversion_of_base_child_to_non_object_class_causes_exception() {
-        methods.into( Value.value() , String.class );
+        methods.into( Value.newValue() , String.class );
     }
 
 
 
     @Test
     public void object_eq_p_test() {
-        Value a = Value.value();
-        Value b = Value.value();
+        Value a = Value.newValue();
+        Value b = Value.newValue();
         assertThat( a.call( OP_EQ , a ).asBool( () -> "" ) , is( true ) );
         assertThat( a.call( OP_EQ , b ).asBool( () -> "" ) , is( false ) );
         assertThat( b.call( OP_EQ , a ).asBool( () -> "" ) , is( false ) );

src/test/java/org/kink_lang/kink/internal/CheckerTest.java

 
 
     /** Fixture value. */
-    private final Value a1 = Value.value();
+    private final Value a1 = Value.newValue();
 
 
     /** Fixture value. */
-    private final Value a2 = Value.value();
+    private final Value a2 = Value.newValue();
 
 
     /** Fixture value. */
-    private final Value a3 = Value.value();
+    private final Value a3 = Value.newValue();
 
 
     /** Fixture value. */
-    private final Value a4 = Value.value();
+    private final Value a4 = Value.newValue();
 
 
     /** Fixture value. */
-    private final Value a5 = Value.value();
+    private final Value a5 = Value.newValue();
 
 
     @Test( expected = UnsupportedOperationException.class )

src/test/java/org/kink_lang/kink/internal/ComparatorsTest.java

 
     @Test
     public void test_naturalComparator_fails_if_compare_returns_not_string() {
-        Value x = Value.value();
-        Value y = Value.value();
+        Value x = Value.newValue();
+        Value y = Value.newValue();
         x.set( new SetSite( "op_cmp" ) , Value.value(
                     Fun.builder().build( ( receiver , arg ) -> Value.value( "XXX" ) ) ) );
         try {

src/test/java/org/kink_lang/kink/internal/EnvsTest.java

 
     @Test
     public void use_succeeds_though_the_specified_module_is_already_defined() {
-        env.set( new SetSite( "START" ) , Value.value() );
+        env.set( new SetSite( "START" ) , Value.newValue() );
         Envs.use( env , "_internal/START" );
         assertThat( env.get( new GetSite( "START" ) ) , is( Modules.find( "_internal/START" ) ) );
     }
 
     @Test
     public void use_succeeds_though_the_specified_method_is_already_defined() {
-        env.set( new SetSite( "start" ) , Value.value() );
+        env.set( new SetSite( "start" ) , Value.newValue() );
         Envs.use( env , "_internal/START.start" );
         assertThat( env.get( new GetSite( "start" ) )
                 , is( Modules.find( "_internal/START" ).get( new GetSite( "start" ) ) ) );
 
     @Test
     public void use_succeeds_even_if_one_of_public_methods_is_already_defined() {
-        env.set( new SetSite( "unfold" ) , Value.value() );
+        env.set( new SetSite( "unfold" ) , Value.newValue() );
         Envs.use( env , "LIST.*" );
         assertThat( env.get( new GetSite( "unfold" ) )
                 , is( Modules.find( "LIST" ).get( new GetSite( "unfold" ) ) ) );
 
     @Test
     public void methods_owned_by_module_are_imported_via_importMethods() {
-        Value moduleParent = Value.value();
+        Value moduleParent = Value.newValue();
         moduleParent.set( new SetSite( "ping" ) , ping );
         moduleParent.set( new SetSite( "pong" ) , pong );
 

src/test/java/org/kink_lang/kink/internal/IdentitiesTest.java

 
     @Test
     public void get_value_from_identity() {
-        Value value = Value.value();
+        Value value = Value.newValue();
         Value identity = Identities.identityValue( value );
         assertThat( identity.call( new GetSite( "value" ) ) , is( value ) );
     }
 
     @Test
     public void show_identity() {
-        Value value = Value.value();
+        Value value = Value.newValue();
         Value identity1 = Identities.identityValue( value );
         Pattern expectedPattern = Pattern.compile( "<identity:hash=([0-9]+|\\(-[0-9]+\\))>" );
         String actualResult1 = identity1.call( new GetSite( "show" ) ).asString( () -> "" );

src/test/java/org/kink_lang/kink/internal/LoopTest.java

     private final Loop loop = mockery.mock( Loop.class , "loop" );
 
 
-    private final Value result = Value.value();
+    private final Value result = Value.newValue();
 
 
     @Test
     }
 
 
-    private final Value a = Value.value();
-    private final Value b = Value.value();
-    private final Value c = Value.value();
-    private final Value d = Value.value();
+    private final Value a = Value.newValue();
+    private final Value b = Value.newValue();
+    private final Value c = Value.newValue();
+    private final Value d = Value.newValue();
 
 
     @Test

src/test/java/org/kink_lang/kink/internal/StringsTest.java

 
     @Test( expected = KinkException.class )
     public void cannot_get_charset_from_not_string_nor_charset_via_getCharset() {
-        Strings.getCharset( Value.value() );
+        Strings.getCharset( Value.newValue() );
     }
 
 

src/test/java/org/kink_lang/kink/internal/box/BooleanEnhancerTest.java

     private final Fun unmatchedCont = mockery.mock( StubFun.class , "unmatchedCont" );
 
 
-    private final Value resultValue = Value.value();
+    private final Value resultValue = Value.newValue();
 
 
     /** GetSite of {@code then}. */

src/test/java/org/kink_lang/kink/internal/box/ClassEnhancerTest.java

         = new ClassEnhancer.ClassMethods();
 
 
-    private final Value notJava = Value.value();
+    private final Value notJava = Value.newValue();
 
 
     private static final class StaticFieldHolder {
     public void throw_exception_for_illegal_argument_coutn_via_var_missing() {
         Value repeaterClass = Value.value( Repeater.class );
         try {
-            repeaterClass.call( new GetSite( "DESCRIPTION" ) , Value.value() );
+            repeaterClass.call( new GetSite( "DESCRIPTION" ) , Value.newValue() );
             fail();
         } catch ( KinkException exception ) {
             assertThat( exception.getCause() , is( (Object) null ) );

src/test/java/org/kink_lang/kink/internal/box/ClassMethodSelectorTest.java

         Fun fun = ClassMethodSelector.of( Util.class , "name" )
             .getMissingVerbHandlerValue().asFun( () -> "" );
         try {
-            fun.invoke( null , null , Value.value( Util.class ) , Value.value() );
+            fun.invoke( null , null , Value.value( Util.class ) , Value.newValue() );
             fail();
         } catch ( KinkException exception ) {
             assertThat( exception.getMessage() , containsString( "name" ) );

src/test/java/org/kink_lang/kink/internal/box/FunEnhancerTest.java

 
 
     /** Fixture value. */
-    private final Value resultValue = Value.value();
+    private final Value resultValue = Value.newValue();
 
 
     /** Fixture function. */
     public void can_get_area_if_any() {
         Fun fun = new Fun( area ) {
             @Override public Value run( Value receiver , Value... args ) {
-                return Value.value();
+                return Value.newValue();
             }
         };
         Value funVal = Value.value( fun );
 
     @Test
     public void test_op_match_returns_true() throws Throwable {
-        final Value kase = Value.value();
+        final Value kase = Value.newValue();
         mockery.checking( new Expectations() { {
             oneOf( fun ).run( Value.base() , kase );
             will( returnValue( Value.value( true ) ) );
 
     @Test
     public void test_op_match_returns_false() throws Throwable {
-        final Value kase = Value.value();
+        final Value kase = Value.newValue();
         mockery.checking( new Expectations() { {
             oneOf( fun ).run( Value.base() , kase );
             will( returnValue( Value.value( false ) ) );
     }
 
 
-    private final Value foo = Value.value();
-    private final Value bar = Value.value();
-    private final Value owner = Value.value();
+    private final Value foo = Value.newValue();
+    private final Value bar = Value.newValue();
+    private final Value owner = Value.newValue();
 
 
     /** GetSite of {@code with_no_trace}. */
         Area area = new Area( program , 0 , program.getText().length() );
         Fun fun = new Fun( area ) {
             @Override public Value run( Value receiver , Value... args ) {
-                return Value.value();
+                return Value.newValue();
             }
         };
         assertThat( Value.value( fun ).call( SHOW ).asString( () -> "" ) , is( "{ foobar }" ) );
 
     @Test
     public void test_into_java_fun() {
-        Fun fun = Fun.ofConstant( Value.value() );
+        Fun fun = Fun.ofConstant( Value.newValue() );
         Value funVal = Value.value( fun );
         assertThat(
             funVal.call( CAN_INTO_P , Value.value( Fun.class ) ).asBool( () -> "" )

src/test/java/org/kink_lang/kink/internal/box/MetaValueEnhancerTest.java

 
     @Test
     public void unmeta_metavalue() {
-        Value twift = Value.value();
+        Value twift = Value.newValue();
         Value metaTwift = Value.value( twift );
         Value unmeta = metaTwift.call( UNMETA );
         assertThat( unmeta , sameInstance( twift ) );

src/test/java/org/kink_lang/kink/internal/box/MethodWrapperTest.java

         ArgumentsHandler handler = new NotCollectVarargsHandler( method.getParameterTypes() );
         MethodWrapper wrapper = new MethodWrapper( method , handler );
         Person person = new Person();
-        Value value = Value.value();
+        Value value = Value.newValue();
         ValueWrapper valueWrapper = new ValueWrapper( value );
         person.object = valueWrapper;
         assertThat( wrapper.invoke( person ) , is( (Object) value ) );

src/test/java/org/kink_lang/kink/internal/box/ObjectEnhancerTest.java

             = new ArrayList< String >( Arrays.asList( "twift" , "voxxx" , "peng" , "olv" ) );
         Value alistVal = Value.value( alist );
         try {
-            alistVal.call( new GetSite( "modCount" ) , Value.value() );
+            alistVal.call( new GetSite( "modCount" ) , Value.newValue() );
             fail();
         } catch ( KinkException exception ) {
             assertThat( exception.getCause() , is( (Object) null ) );

src/test/java/org/kink_lang/kink/internal/box/ObjectMethodSelectorTest.java

         Fun fun = ObjectMethodSelector.of( Person.class , "name" )
             .getMissingVerbHandlerValue().asFun( () -> "" );
         try {
-            fun.invoke( null , null , Value.value( john ) , Value.value() );
+            fun.invoke( null , null , Value.value( john ) , Value.newValue() );
             fail();
         } catch ( KinkException exception ) {
             assertThat( exception.getMessage() , containsString( "name" ) );
         Fun fun = ObjectMethodSelector.of( Person.class , "getName" )
             .getMissingVerbHandlerValue().asFun( () -> "" );
         try {
-            fun.invoke( null , null , Value.value( john ) , Value.value() );
+            fun.invoke( null , null , Value.value( john ) , Value.newValue() );
             fail();
         } catch ( KinkException exception ) {
             assertThat( exception.getMessage() , containsString( "getName" ) );

src/test/java/org/kink_lang/kink/internal/box/ProxyFactoryTest.java

 
 
     /** Fixture. */
-    private final Value foo = Value.value();
+    private final Value foo = Value.newValue();
 
 
     /** Fixture. */
-    private final Value bar = Value.value();
+    private final Value bar = Value.newValue();
 
 
     /** Fixture. */
-    private final Value baz = Value.value();
+    private final Value baz = Value.newValue();
 
 
     /** Fixture. */
-    private final Value qux = Value.value();
+    private final Value qux = Value.newValue();
 
 
     /** Fixture. */
-    private final Value grault = Value.value();
+    private final Value grault = Value.newValue();
 
 
     @Test
                 , Collections.< Signature , Fun >emptyMap()
                 , map );
         ObjectConsumer consumer = (ObjectConsumer) factory.newProxy();
-        Value value = Value.value();
+        Value value = Value.newValue();
         consumer.consume( new ValueWrapper( value ) );
         assertThat( consumed[ 0 ] , is( value ) );
     }

src/test/java/org/kink_lang/kink/internal/box/StringEnhancerTest.java

     @Test( expected = KinkException.class )
     public void exception_thrown_when_cannot_get_matcher_of_pattern() {
         Fun matcherMethod = Fun.builder().buildVarArgs( ( receiver , args ) -> Value.value( 42 ) );
-        Value wrongPattern = Value.value();
+        Value wrongPattern = Value.newValue();
         wrongPattern.set( new SetSite( "matcher" ) , Value.value( matcherMethod ) );
         StringEnhancer.matcherOfPattern( wrongPattern , "++foobar++" );
     }
         final Fun aMatches = mockery.mock( StubFun.class , "aMatches" );
         final Fun bMatches = mockery.mock( StubFun.class , "bMatches" );
         final Fun cMatches = mockery.mock( StubFun.class , "cMatches" );
-        final Value aPat = Value.value();
-        final Value bPat = Value.value();
-        final Value cPat = Value.value();
+        final Value aPat = Value.newValue();
+        final Value bPat = Value.newValue();
+        final Value cPat = Value.newValue();
         aPat.set( new SetSite( "op_match" ) , Value.value( aMatches ) );
         bPat.set( new SetSite( "op_match" ) , Value.value( bMatches ) );
         cPat.set( new SetSite( "op_match" ) , Value.value( cMatches ) );
         final Fun bBody = mockery.mock( StubFun.class , "bBody" );
         final Fun cBody = mockery.mock( StubFun.class , "cBody" );
         final Value kase = Value.value( "kase" );
-        final Value expectedResult = Value.value();
+        final Value expectedResult = Value.newValue();
         mockery.checking( new Expectations() { {
             oneOf( aMatches ).run( aPat , kase );
             will( returnValue( Value.value( false ) ) );
         final Fun aMatches = mockery.mock( StubFun.class , "aMatches" );
         final Fun bMatches = mockery.mock( StubFun.class , "bMatches" );
         final Fun cMatches = mockery.mock( StubFun.class , "cMatches" );
-        final Value aPat = Value.value();
-        final Value bPat = Value.value();
-        final Value cPat = Value.value();
+        final Value aPat = Value.newValue();
+        final Value bPat = Value.newValue();
+        final Value cPat = Value.newValue();
         aPat.set( new SetSite( "op_match" ) , Value.value( aMatches ) );
         bPat.set( new SetSite( "op_match" ) , Value.value( bMatches ) );
         cPat.set( new SetSite( "op_match" ) , Value.value( cMatches ) );
     public void switch_fails_if_the_number_or_args_is_not_even() {
         Value kase = Value.value( "kase" );
         Fun aMatches = mockery.mock( StubFun.class , "aMatches" );
-        Value aPat = Value.value();
+        Value aPat = Value.newValue();
         Fun aBody = mockery.mock( StubFun.class , "aBody" );
         aPat.set( new SetSite( "op_match" ) , Value.value( aMatches ) );
         Value actualResult = kase.call( new GetSite( "switch" )
-                , aPat , Value.value( aBody ) , Value.value() );
+                , aPat , Value.value( aBody ) , Value.newValue() );
         assertThat( actualResult , is( Value.base() ) );
     }
 
     @Test
     public void test_op_match_returns_false_for_not_string_value() {
         Value pattern = Value.value( "nexus6" );
-        Value notString = Value.value();
+        Value notString = Value.newValue();
         Value result = pattern.call( OP_MATCHE , notString );
         assertThat( result.asBool( () -> "" ) , is( false ) );
     }

src/test/java/org/kink_lang/kink/internal/box/ValueListEnhancerTest.java

     }
 
 
-    private final Value notList = Value.value();
+    private final Value notList = Value.newValue();
 
 
-    private final Value a = Value.value();
+    private final Value a = Value.newValue();
 
 
-    private final Value b = Value.value();
+    private final Value b = Value.newValue();
 
 
-    private final Value c = Value.value();
+    private final Value c = Value.newValue();
 
 
-    private final Value d = Value.value();
+    private final Value d = Value.newValue();
 
 
-    private final Value e = Value.value();
+    private final Value e = Value.newValue();
 
 
-    private final Value f = Value.value();
+    private final Value f = Value.newValue();
 
 
-    private final Value x = Value.value();
+    private final Value x = Value.newValue();
 
 
     /** {@code { _0 % 2 == 0 } }. */
     }
 
 
-    private final Value owner = Value.value();
+    private final Value owner = Value.newValue();
 
 
     @Test
 
 
     private Value varLike( final Value owner , final String symbol ) {
-        Value varLike = Value.value();
+        Value varLike = Value.newValue();
         varLike.set( new SetSite( "op_set" ) , Value.value( Fun.builder().build( ( receiver , arg ) -> {
             owner.set( new SetSite( symbol ) , arg );
             return Value.base();
 
 
     private Value convertibleToJava( final Object java ) {
-        Value value = Value.value();
+        Value value = Value.newValue();
         value.set( new SetSite( "into" ) , Value.value(
                     Fun.builder().buildVarArgs( ( receiver , args ) -> Value.value( java ) ) ) );
         return value;

src/test/java/org/kink_lang/kink/internal/box/VarEnhancerTest.java

     public final ExpectedException expectedException = ExpectedException.none();
 
 
-    private final Value owner = Value.value();
+    private final Value owner = Value.newValue();
 
 
-    private final Value owner2 = Value.value();
+    private final Value owner2 = Value.newValue();
 
 
-    private final Value content = Value.value();
+    private final Value content = Value.newValue();
 
 
     // Test VAR.owner {{{1
 
 
     private void check_op_logor_set( boolean first , boolean second ) {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_flag = FIRST
         owner.set( new SetSite( "_flag" ) , Value.value( first ) );
 
 
     private void check_op_logand_set( boolean first , boolean second ) {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_flag = FIRST
         owner.set( new SetSite( "_flag" ) , Value.value( first ) );
 
     @Test
     public void test_op_or_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 0x1100
         owner.set( new SetSite( "_balance" ) , Value.value( 0x1100 ) );
 
     @Test
     public void test_op_xor_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 0x1100
         owner.set( new SetSite( "_balance" ) , Value.value( 0x1100 ) );
 
     @Test
     public void test_op_and_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 0x1100
         owner.set( new SetSite( "_balance" ) , Value.value( 0x1100 ) );
 
     @Test
     public void test_op_shl_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 0xff
         owner.set( new SetSite( "_balance" ) , Value.value( 0xff ) );
 
     @Test
     public void test_op_shr_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 0xff00
         owner.set( new SetSite( "_balance" ) , Value.value( 0xff00 ) );
 
     @Test
     public void test_op_add_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 42
         owner.set( new SetSite( "_balance" ) , Value.value( 42 ) );
 
     @Test
     public void test_op_sub_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 42
         owner.set( new SetSite( "_balance" ) , Value.value( 42 ) );
 
     @Test
     public void test_multiplyassign() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 42
         owner.set( new SetSite( "_balance" ) , Value.value( 42 ) );
 
     @Test
     public void test_op_div_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 42
         owner.set( new SetSite( "_balance" ) , Value.value( 42 ) );
 
     @Test
     public void test_op_intdiv_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 42
         owner.set( new SetSite( "_balance" ) , Value.value( 42 ) );
 
     @Test
     public void test_op_rem_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 42
         owner.set( new SetSite( "_balance" ) , Value.value( 42 ) );
 
     @Test
     public void test_op_pow_set() {
-        Value owner = Value.value();
+        Value owner = Value.newValue();
 
         // OWNER.&_balance = 42
         owner.set( new SetSite( "_balance" ) , Value.value( 42 ) );
     private final Area area = new Area( new Program( "var.kn" , "&VAR" ) , 0 );
 
 
-    private final Value result = Value.value();
+    private final Value result = Value.newValue();
 
 
     @Test
 
     @Test
     public void solid_returns_holders_var() {
-        Value parent = Value.value();
+        Value parent = Value.newValue();
         Value child = parent.newChild();
 
         parent.set( new SetSite( "..symbol.." ) , content );
     // Test VAR.call {{{1
 
 
-    private final Value arg = Value.value();
+    private final Value arg = Value.newValue();
 
 
     private final Fun dosomething = mockery.mock( StubFun.class , "dosomething" );

src/test/java/org/kink_lang/kink/internal/define/DefinerTest.java

 
 
     /** Fixture value. */
-    private final Value owner = Value.value();
+    private final Value owner = Value.newValue();
 
 
     public static final class Features {
 
         @Define
-        public final Value implicitConstant = Value.value();
+        public final Value implicitConstant = Value.newValue();
 
         @Define( "explicitConstant" )
-        public static final Value nameNotGiven = Value.value();
+        public static final Value nameNotGiven = Value.newValue();
 
 
         /** Not method becaus it is not annotated. */
-        public static final Value NOT_METHOD = Value.value();
+        public static final Value NOT_METHOD = Value.newValue();
 
 
         /** Result of {@link #implicitFun}. */
-        static final Value IMPLICIT_PROC_VALUE = Value.value();
+        static final Value IMPLICIT_PROC_VALUE = Value.newValue();
 
         /** Result of {@link #nameNotGiven}. */
-        static final Value EXPLICIT_PROC_VALUE = Value.value();
+        static final Value EXPLICIT_PROC_VALUE = Value.newValue();
 
         @Define
         public Value implicitFun() {
     public static class Conflict {
 
         @Define( "sameName" )
-        public static final Value sameNameField = Value.value();
+        public static final Value sameNameField = Value.newValue();
 
         @Define( "sameName" )
         public static void sameNameMethod() {

src/test/java/org/kink_lang/kink/internal/define/JavaMethodTest.java

             .setStatic();
 
         static Value valueResult() {
-            return Value.value();
+            return Value.newValue();
         }
     }
 
             .setStatic();
 
         static CallResult callResult() {
-            return Value.value();
+            return Value.newValue();
         }
     }
 
             .setMandatoryArgumentCount( 1 );
 
         static Value unary( @Receiver Value receiver , Value arg ) {
-            return Value.value();
+            return Value.newValue();
         }
     }
 
             .setHasRest();
 
         static Value array( Value... values ) {
-            return Value.value();
+            return Value.newValue();
         }
     }
 
             .setHasRest();
 
         static Value printf( Value format , Value... values ) {
-            return Value.value();
+            return Value.newValue();
         }
     }
 
                 , Value trueFun
                 , @Optional Value falseFun ) {
 
-            return Value.value();
+            return Value.newValue();
         }
     }
 
             .setHasRest();
 
         static Value twoOptRest( @Optional Value one , @Optional Value two , Value... rest ) {
-            return Value.value();
+            return Value.newValue();
         }
     }
 

src/test/java/org/kink_lang/kink/internal/define/MethodFunGeneratorTest.java

 
 
     /** Fixture value. */
-    private final Value valueFoo = Value.value();
+    private final Value valueFoo = Value.newValue();
 
 
     private static Method findMethod( Class< ? > klass , String name ) {
         String y = "def";
         String v1 = "123";
         String v2 = "456";
-        Value actualResult = (Value) varJoinFun.run( Value.value()
+        Value actualResult = (Value) varJoinFun.run( Value.newValue()
                 , Value.value( x )
                 , Value.value( y )
                 , Value.value( v1 )
                 , Value.value( v2 ) );
         assertThat( actualResult.as( String.class , () -> "result" )
                 , is( x + y + v1 + v2 ) );
-        assertThat( ( (Value) varJoinFun.run2( Value.value()
+        assertThat( ( (Value) varJoinFun.run2( Value.newValue()
                     , Value.value( x ) , Value.value( y ) ) ).asString( () -> "" )
                 , is( x + y ) );
-        assertThat( ( (Value) varJoinFun.run3( Value.value()
+        assertThat( ( (Value) varJoinFun.run3( Value.newValue()
                     , Value.value( x ) , Value.value( y ) , Value.value( v1 ) ) ).asString( () -> "" )
                 , is( x + y + v1 ) );
     }
                 new DefiningClassLoader( getClass().getClassLoader() )
                 , VarJoinFunctionDefiner.METHOD
                 , new VarJoinFunctionDefiner() );
-        varJoinFun.run1( Value.value() , Value.value( "voxxx" ) );
+        varJoinFun.run1( Value.newValue() , Value.value( "voxxx" ) );
     }
 
 
                 new DefiningClassLoader( getClass().getClassLoader() )
                 , VarJoinFunctionDefiner.METHOD
                 , new VarJoinFunctionDefiner() );
-        varJoinFun.run( Value.value() , Value.value( "abc" ) );
+        varJoinFun.run( Value.newValue() , Value.value( "abc" ) );
     }
 
 
                 new DefiningClassLoader( getClass().getClassLoader() )
                 , ArrayRestJoin.METHOD
                 , new ArrayRestJoin() );
-        join.run1( Value.value() , Value.value( "voxxx" ) );
+        join.run1( Value.newValue() , Value.value( "voxxx" ) );
     }
 
 
                 new DefiningClassLoader( getClass().getClassLoader() )
                 , OptRest.OPTREST
                 , new OptRest() );
-        assertThat( ( (Value) fun.run1( Value.value()
+        assertThat( ( (Value) fun.run1( Value.newValue()
                     , Value.value( "voxxx" ) ) ).asString( () -> "" )
                 , is( "voxxx" ) );
-        assertThat( ( (Value) fun.run2( Value.value()
+        assertThat( ( (Value) fun.run2( Value.newValue()
                     , Value.value( "voxxx" )
                     , Value.value( "twift" ) ) ).asString( () -> "" )
                 , is( "voxxxtwift" ) );
-        assertThat( ( (Value) fun.run3( Value.value()
+        assertThat( ( (Value) fun.run3( Value.newValue()
                     , Value.value( "voxxx" )
                     , Value.value( "twift" )
                     , Value.value( "hallogallo" ) ) ).asString( () -> "" )
                 new DefiningClassLoader( getClass().getClassLoader() )
                 , ExactStringArgument.METHOD
                 , new ExactStringArgument() );
-        assertThat( ( (Value) fun.run1( Value.value() , Value.value( "chag" ) ) ).asString( () -> "" )
+        assertThat( ( (Value) fun.run1( Value.newValue() , Value.value( "chag" ) ) ).asString( () -> "" )
                 , is( "chagchag" ) );
-        assertThat( ( (Value) fun.run( Value.value() , new Value[] { Value.value( "chag" ) } ) ).asString( () -> "" )
+        assertThat( ( (Value) fun.run( Value.newValue() , new Value[] { Value.value( "chag" ) } ) ).asString( () -> "" )
                 , is( "chagchag" ) );
     }
 
                 new DefiningClassLoader( getClass().getClassLoader() )
                 , ExactStringArgument.METHOD
                 , new ExactStringArgument() );
-        fun.run1( Value.value() , Value.value( 42 ) );
+        fun.run1( Value.newValue() , Value.value( 42 ) );
     }
 
 
                 new DefiningClassLoader( getClass().getClassLoader() )
                 , ExactStringArgument.METHOD
                 , new ExactStringArgument() );
-        fun.run( Value.value() , new Value[] { Value.value( 42 ) } );
+        fun.run( Value.newValue() , new Value[] { Value.value( 42 ) } );
     }