eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaPackage':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: JavaPackage


Inheritance:

   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

Class protocol:

accessing
o  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.

o  getJavaClass: fullName

o  source
(comment from inherited method)
return the classes full source code

error handling
o  doesNotUnderstand: aMessage
STX:LIBJAVA not loaded

fileOut
o  fileOutDefinitionOn: aStream
redefined to generate another definition message

initialization
o  initialize
Create JAVA namespace (for easy class access)

instance creation
o  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.

o  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
o  displayString
return a printed representation - here, a reminder is appended,
that this is not a regular class

queries
o  isJavaPackage
Answer true if the receiver is a Java package. My subclasses are Java packages

o  isNameSpace
return true, if the receiver is a nameSpace.
Unconditionally true here for subclasses - my subclasses are namespaces

o  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



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 06:32:51 GMT