Package coneforest.psylla.core
Class PsyNamespace
- java.lang.Object
-
- coneforest.psylla.core.PsyDict
-
- coneforest.psylla.core.PsyNamespace
-
- All Implemented Interfaces:
PsyClearable
,PsyContainer<PsyObject>
,PsyConvertableToName
,PsyConvertableToString
,PsyDictlike<PsyObject>
,PsyIndexed<PsyStringy,PsyObject>
,PsyIterable<PsyObject>
,PsyLengthy
,PsyObject
,PsyStreamlike<PsyObject>
,Iterable<PsyObject>
public class PsyNamespace extends PsyDict
A representation of Ψ-namespace
, a named dictionary.
-
-
Constructor Summary
Constructors Constructor Description PsyNamespace(String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PsyObject
get(String key)
String
prefix()
Returns the namespace prefix.void
psyImport(PsyNamespace oNamespace)
String
toSyntaxString()
-
Methods inherited from class coneforest.psylla.core.PsyDict
isEmpty, iterator, known, length, psyClear, psyClone, psyKeys, psySlice, psyStream, put, undef
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface coneforest.psylla.core.PsyContainer
psyNewEmpty
-
Methods inherited from interface coneforest.psylla.core.PsyDictlike
psyDelete, psyEntries, psyExtract, psyGet, psyGetAll, psyKnown, psyPut, psyUndef, psyValues, toSyntaxStringHelper
-
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyCount, psyFilter, psyForAll, psyMap, psyToArray, psyUnite
-
Methods inherited from interface coneforest.psylla.core.PsyLengthy
psyIsEmpty, psyLength
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Methods inherited from interface coneforest.psylla.core.PsyStreamlike
psyConcat
-
-
-
-
Constructor Detail
-
PsyNamespace
public PsyNamespace(String prefix)
-
-
Method Detail
-
prefix
public String prefix()
Returns the namespace prefix.- Returns:
- the prefix.
-
get
public PsyObject get(String key) throws PsyException
- Specified by:
get
in interfacePsyDictlike<PsyObject>
- Overrides:
get
in classPsyDict
- Throws:
PsyException
-
psyImport
public void psyImport(PsyNamespace oNamespace)
-
toSyntaxString
public String toSyntaxString()
-
-