Code Search for Developers
 
 
  

BaseScriptable.java from BIRT at Krugle


Show BaseScriptable.java syntax highlighted

package org.eclipse.birt.core.script;

import org.mozilla.javascript.Scriptable;


/**
 * An empty implementation of interface <code>Scriptable</code>
 */
public abstract class BaseScriptable implements Scriptable
{

	Scriptable prototype;
	Scriptable parent;

	public BaseScriptable()
	{
	}
	
	public BaseScriptable( Scriptable parent )
	{
		setParentScope(parent);
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#delete(java.lang.String)
	 */
	public void delete( String arg0 )
	{
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#delete(int)
	 */
	public void delete( int arg0 )
	{
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#get(int, org.mozilla.javascript.Scriptable)
	 */
	public Object get( int arg0, Scriptable arg1 )
	{
		return NOT_FOUND;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#getDefaultValue(java.lang.Class)
	 */
	public Object getDefaultValue( Class arg0 )
	{
		return null;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#getIds()
	 */
	public Object[] getIds( )
	{
		return null;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#getParentScope()
	 */
	public Scriptable getParentScope( )
	{
		return parent;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#getPrototype()
	 */
	public Scriptable getPrototype( )
	{
		return prototype;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#has(int, org.mozilla.javascript.Scriptable)
	 */
	public boolean has( int arg0, Scriptable arg1 )
	{
		return false;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#hasInstance(org.mozilla.javascript.Scriptable)
	 */
	public boolean hasInstance( Scriptable arg0 )
	{
		return false;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#put(int, org.mozilla.javascript.Scriptable, java.lang.Object)
	 */
	public void put( int arg0, Scriptable arg1, Object arg2 )
	{
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#setParentScope(org.mozilla.javascript.Scriptable)
	 */
	public void setParentScope( Scriptable parent )
	{
		this.parent = parent;
	}

	/* (non-Javadoc)
	 * @see org.mozilla.javascript.Scriptable#setPrototype(org.mozilla.javascript.Scriptable)
	 */
	public void setPrototype( Scriptable prototype )
	{
		this.prototype = prototype;
	}
}




See more files for this project here

BIRT

BIRT is an open source, Eclipse-based reporting system that integrates with your application to produce compelling reports for both web and PDF.

Project homepage: http://www.eclipse.org/birt/phoenix/
Programming language(s): Java,XML
License: gpl2

  bre/
    BirtComp.java
    BirtDateTime.java
    BirtMath.java
    BirtStr.java
    BreUtility.java
  BaseScriptable.java
  BirtHashMap.java
  CoreJavaScriptInitializer.java
  CoreJavaScriptWrapper.java
  DateTimeSpan.java
  Finance.java
  IJavascriptInitializer.java
  IJavascriptWrapper.java
  JavascriptEvalUtil.java
  NativeDateTimeSpan.java
  NativeFinance.java
  NativeJavaLinkedHashMap.java
  NativeJavaList.java
  NativeJavaMap.java
  NativeNamedList.java
  ScriptContext.java
  package.html