com.cyc.tool.subl.jrtl.nativeCode.type.core
Class SubLEnvironment

java.lang.Object
  extended by com.cyc.tool.subl.jrtl.nativeCode.type.core.AbstractSubLObject
      extended by com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLEnvironment
All Implemented Interfaces:
SubLObject, java.lang.Cloneable

public final class SubLEnvironment
extends AbstractSubLObject


Field Summary
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject
DEFAULT_EXCEEDED_HASH_VALUE, DO_CHECK_TYPES, DO_PARANOID_TYPE_CHECKING, MAX_HASH_DEPTH, MAX_HASH_LENGTH
 
Method Summary
 boolean canFastHash()
           
static SubLEnvironment currentEnvironment()
           
 SubLEnvironment extend()
           
 SubLPackage getCurrentPackage()
           
static SubLEnvironment getDefaultEnvironment()
           
 SubLEnvironment getOuterEnvironment()
           
 int hashCode(int currentDepth)
           
 boolean isAtom()
           
 boolean isBigIntegerBignum()
           
 boolean isBignum()
           
 boolean isBoolean()
           
 boolean isChar()
           
 boolean isCons()
           
 boolean isDouble()
           
 boolean isEnvironment()
           
 boolean isError()
           
 boolean isFixnum()
           
 boolean isFunction()
           
 boolean isFunctionSpec()
           
 boolean isGuid()
           
 boolean isHashtable()
           
 boolean isHashtableIterator()
           
 boolean isIntBignum()
           
 boolean isInteger()
           
 boolean isKeyhash()
           
 boolean isKeyhashIterator()
           
 boolean isKeyword()
           
 boolean isList()
           
 boolean isLock()
           
 boolean isLongBignum()
           
 boolean isMacroOperator()
           
 boolean isNil()
           
 boolean isNumber()
           
 boolean isPackage()
           
 boolean isProcess()
           
 boolean isReadWriteLock()
           
 boolean isRegexPattern()
           
 boolean isSemaphore()
           
 boolean isSequence()
           
 boolean isStream()
           
 boolean isString()
           
 boolean isStructure()
           
 boolean isSymbol()
           
 boolean isVector()
           
 SubLObject lookupBinding(SubLSymbol var)
           
 SubLObject noteBinding(SubLSymbol var, SubLObject newValue)
           
 void setBinding(SubLSymbol var, SubLObject value)
           
static void setCurrentEnvironment(SubLEnvironment env)
           
 SubLEnvironment toEnv()
          Method created to avoid casting
 java.lang.String toTypeName()
           
 void unextend()
           
 
Methods inherited from class com.cyc.tool.subl.jrtl.nativeCode.type.core.AbstractSubLObject
add, addKey, asArrayList, asConsList, bigIntegerValue, bind, charValue, checkType, checkTypeInternal, clone, currentBinding, dec, doubleValue, eighth, enforceType, enforceTypeInternal, eql, equal, equalp, equals, eval, fifth, first, fourth, get, get, getCharacter, getField, getField0, getField1, getField10, getField11, getField12, getField13, getField14, getField15, getField16, getField17, getField18, getField19, getField2, getField20, getField3, getField4, getField5, getField6, getField7, getField8, getField9, getFileDesignator, getFunc, getNumSize, getStream, getString, getType, getTypeCode, hashCode, hasKey, inc, intValue, isArrayBased, isNegative, isPositive, isZero, last, longValue, makeCopy, makeDeepCopy, mult, ninth, nthCdr, numE, numG, numGE, numL, numLE, put, rebind, remKey, remove, rest, reverse, second, set, setField, setField0, setField1, setField10, setField11, setField12, setField13, setField14, setField15, setField16, setField17, setField18, setField19, setField2, setField20, setField3, setField4, setField5, setField6, setField7, setField8, setField9, setFirst, setRest, seventh, sixth, size, sub, superHash, tenth, third, toChar, toCons, toDouble, toFixnum, toGuid, toHashtable, toHashtableIterator, toInputBinaryStream, toInputStream, toInputTextStream, toInteger, toKeyhash, toKeyhashIterator, toList, toLock, toMacro, toNumber, toOutputBinaryStream, toOutputStream, toOutputTextStream, toPackage, toProcess, toReadWriteLock, toRegexPattern, toSemaphore, toSeq, toStr, toStruct, toSymbol, toVect
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toTypeName

public java.lang.String toTypeName()
Specified by:
toTypeName in interface SubLObject
Overrides:
toTypeName in class AbstractSubLObject

currentEnvironment

public static SubLEnvironment currentEnvironment()

setCurrentEnvironment

public static void setCurrentEnvironment(SubLEnvironment env)

getDefaultEnvironment

public static SubLEnvironment getDefaultEnvironment()

getCurrentPackage

public SubLPackage getCurrentPackage()

getOuterEnvironment

public SubLEnvironment getOuterEnvironment()

extend

public SubLEnvironment extend()

unextend

public void unextend()

noteBinding

public SubLObject noteBinding(SubLSymbol var,
                              SubLObject newValue)

lookupBinding

public SubLObject lookupBinding(SubLSymbol var)

setBinding

public void setBinding(SubLSymbol var,
                       SubLObject value)

hashCode

public int hashCode(int currentDepth)

canFastHash

public final boolean canFastHash()

toEnv

public final SubLEnvironment toEnv()
Method created to avoid casting

Specified by:
toEnv in interface SubLObject
Overrides:
toEnv in class AbstractSubLObject

isNil

public final boolean isNil()

isBoolean

public final boolean isBoolean()

isSymbol

public final boolean isSymbol()

isKeyword

public final boolean isKeyword()

isAtom

public final boolean isAtom()

isCons

public final boolean isCons()

isList

public final boolean isList()

isSequence

public final boolean isSequence()

isNumber

public final boolean isNumber()

isFixnum

public final boolean isFixnum()

isBignum

public final boolean isBignum()

isIntBignum

public final boolean isIntBignum()

isLongBignum

public final boolean isLongBignum()

isBigIntegerBignum

public final boolean isBigIntegerBignum()

isInteger

public final boolean isInteger()

isDouble

public final boolean isDouble()

isChar

public final boolean isChar()

isString

public final boolean isString()

isVector

public final boolean isVector()

isFunction

public final boolean isFunction()

isFunctionSpec

public final boolean isFunctionSpec()

isMacroOperator

public final boolean isMacroOperator()

isHashtable

public final boolean isHashtable()

isProcess

public final boolean isProcess()

isLock

public final boolean isLock()

isReadWriteLock

public final boolean isReadWriteLock()

isStructure

public final boolean isStructure()

isStream

public final boolean isStream()

isPackage

public final boolean isPackage()

isError

public final boolean isError()

isGuid

public final boolean isGuid()

isSemaphore

public final boolean isSemaphore()

isEnvironment

public final boolean isEnvironment()

isHashtableIterator

public final boolean isHashtableIterator()

isRegexPattern

public final boolean isRegexPattern()

isKeyhash

public final boolean isKeyhash()

isKeyhashIterator

public final boolean isKeyhashIterator()