oscript.data
Class FunctionScope

java.lang.Object
  extended byoscript.data.Value
      extended byoscript.data.Scope
          extended byoscript.data.BasicScope
              extended byoscript.data.FunctionScope
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConstructorScope

public class FunctionScope
extends BasicScope

The FunctionScope to implement the scope for a function.

Author:
Rob Clark (rob@ti.com)
See Also:
Serialized Form

Field Summary
protected  Function fxn
           
 
Fields inherited from class oscript.data.BasicScope
members, mixins, smit
 
Fields inherited from class oscript.data.Scope
previous
 
Fields inherited from class oscript.data.Value
DEBUG, MEMBER_NAMES, NULL, PARENT_TYPE_NAME, TYPE, TYPE_NAME, UNDEFINED
 
Constructor Summary
protected FunctionScope(Function fxn, Scope previous, SymbolTable smit)
           
  FunctionScope(Function fxn, Scope previous, SymbolTable smit, MemberTable members)
          Class Constructor.
 
Method Summary
 Value getCallee()
          Lookup the "callee" within a scope.
protected  Value getMemberImpl(int id)
          Overridden to check for statics
 
Methods inherited from class oscript.data.BasicScope
__getInstanceMember, createMember, free, getMember, getSafeCopy, getType, getTypeImpl, isSafe, lookupInScope, mixin, populateMemberSet, reset
 
Methods inherited from class oscript.data.Scope
__setJavaObject, createMember, createMember, findDesc, getPreviousScope, getThis, lookupInScope, lookupInScope
 
Methods inherited from class oscript.data.Value
_getTypeMember, _populateTypeMemberSet, bopBitwiseAnd, bopBitwiseAndR, bopBitwiseOr, bopBitwiseOrR, bopBitwiseXor, bopBitwiseXorR, bopCast, bopCastR, bopDivide, bopDivideR, bopEquals, bopEqualsR, bopGreaterThan, bopGreaterThanOrEquals, bopGreaterThanOrEqualsR, bopGreaterThanR, bopInstanceOf, bopInstanceOfR, bopLeftShift, bopLeftShiftR, bopLessThan, bopLessThanOrEquals, bopLessThanOrEqualsR, bopLessThanR, bopLogicalAnd, bopLogicalAndR, bopLogicalOr, bopLogicalOrR, bopMinus, bopMinusR, bopMultiply, bopMultiplyR, bopNotEquals, bopNotEqualsR, bopPlus, bopPlusR, bopRemainder, bopRemainderR, bopSignedRightShift, bopSignedRightShiftR, bopUnsignedRightShift, bopUnsignedRightShiftR, callAsConstructor, callAsConstructor, callAsConstructor, callAsExtends, callAsExtends, callAsExtends, callAsFunction, callAsFunction, callAsFunction, castToBoolean, castToExactNumber, castToInexactNumber, castToJavaObject, castToString, elementAt, elementsAt, getMember, getMember, getMember, getMember, getMember, getMonitor, getTypeMember, getTypeMember, isA, length, memberSet, noSuchMember, opAssign, populateTypeMemberSet, readExternal, toString, unhand, uopBitwiseNot, uopDecrement, uopIncrement, uopLogicalNot, uopMinus, uopPlus, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fxn

protected Function fxn
Constructor Detail

FunctionScope

public FunctionScope(Function fxn,
                     Scope previous,
                     SymbolTable smit,
                     MemberTable members)
Class Constructor.

Parameters:
fxn - the function
previous - the previous
smit - shared member idx table
members - the members table, containing function arguments

FunctionScope

protected FunctionScope(Function fxn,
                        Scope previous,
                        SymbolTable smit)
Method Detail

getMemberImpl

protected Value getMemberImpl(int id)
Overridden to check for statics

Overrides:
getMemberImpl in class BasicScope

getCallee

public Value getCallee()
Lookup the "callee" within a scope. The "callee" is the first scope chain node that is a function-scope, rather than a regular scope chain node.

Overrides:
getCallee in class Scope
Returns:
the "callee" Function within callee scope