|
Class: JavaPackage
Object
|
+--NameSpace
|
+--JavaPackage
|
+--JAVA
- Package:
- stx:libbasic
- Category:
- Languages-Java-Support
- Version:
- rev:
1.9
date: 2019/06/05 15:09:21
- user: cg
- file: JavaPackage.st directory: libbasic
- module: stx stc-classLibrary: libbasic
accessing
-
compilerClass
-
(comment from inherited method)
return the compiler to use for this class -
this can be redefined in special classes, to compile classes with
JavaScript, Ruby, Lisp, Prolog, ASN1, Basic :-) or whatever syntax.
-
getJavaClass: fullName
-
-
source
-
(comment from inherited method)
return the classes full source code
error handling
-
doesNotUnderstand: aMessage
-
STX:LIBJAVA not loaded
fileOut
-
fileOutDefinitionOn: aStream
-
redefined to generate another definition message
initialization
-
initialize
-
Create JAVA namespace (for easy class access)
instance creation
-
fullName: fullNameSpaceName
-
given a possibly nested name of a namespace, create all required
intermediate spaces (if not already existing) and return the
bottom-level space.
-
name: aStringOrSymbol
-
create a new nameSpace, named aStringOrSymbol.
Notice, that the nameSpace is created in the current one -
don't get confused; we recommend, not to nest them too much.
usage example(s):
NameSpace name:'foo'
(NameSpace name:'foo') category:'my name space'
foo at:#bar put:(Metaclass new new)
(NameSpace name:'foo') name:'bar'
|
usage example(s):
NameSpace name:'an-invalid++name'
NameSpace name:'another:invalidName'
NameSpace name:'another::invalidName'
|
printing & storing
-
displayString
-
return a printed representation - here, a reminder is appended,
that this is not a regular class
queries
-
isJavaPackage
-
Answer true if the receiver is a Java package. My subclasses are Java packages
-
isNameSpace
-
return true, if the receiver is a nameSpace.
Unconditionally true here for subclasses - my subclasses are namespaces
-
isRealNameSpace
-
return true, if the receiver is a nameSpace, but not Smalltalk (which is also a class).
Unconditionally true here for subclasses - my subclasses are namespaces
|