forked from dynjs/dynjs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support for exposing builtins
- Loading branch information
Showing
4 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.dynjs.runtime.loader; | ||
|
||
public class Builtin { | ||
|
||
private final String bindingName; | ||
private final Object boundObject; | ||
|
||
public Builtin(String bindingName, Object boundObject) { | ||
this.bindingName = bindingName; | ||
this.boundObject = boundObject; | ||
} | ||
|
||
public String getBindingName() { | ||
return bindingName; | ||
} | ||
|
||
public Object getBoundObject() { | ||
return boundObject; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters