Skip to content

Instantly share code, notes, and snippets.

@kazimuth
Created July 24, 2014 14:18
Show Gist options
  • Save kazimuth/c4747f15809f2562184b to your computer and use it in GitHub Desktop.
Save kazimuth/c4747f15809f2562184b to your computer and use it in GitHub Desktop.
Jython importing session
Jython 2.7b3+ (default:0c21916a620a, Jul 17 2014, 10:01:34)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_65
Type "help", "copyright", "credits" or "license" for more information.
>>> dir()
['__doc__', '__name__', '__package__']
>>> from java.util import *
>>> dir()
['AbstractCollection', 'AbstractList', 'AbstractMap', 'AbstractQueue', 'AbstractSequentialList', 'AbstractSet', 'ArrayDeque', 'ArrayList', 'Arrays', 'BitSet', 'Calendar', 'Collection', 'Collections', 'Comparator', 'ConcurrentModificationException', 'Currency', 'Date', 'Deque', 'Dictionary', 'DuplicateFormatFlagsException', 'EmptyStackException', 'EnumMap', 'EnumSet', 'Enumeration', 'EventListener', 'EventListenerProxy', 'EventObject', 'FormatFlagsConversionMismatchException', 'Formattable', 'FormattableFlags', 'Formatter', 'FormatterClosedException', 'GregorianCalendar', 'HashMap', 'HashSet', 'Hashtable', 'IdentityHashMap', 'IllegalFormatCodePointException', 'IllegalFormatConversionException', 'IllegalFormatException', 'IllegalFormatFlagsException', 'IllegalFormatPrecisionException', 'IllegalFormatWidthException', 'IllformedLocaleException', 'InputMismatchException', 'InvalidPropertiesFormatException', 'Iterator', 'LinkedHashMap', 'LinkedHashSet', 'LinkedList', 'List', 'ListIterator', 'ListResourceBundle', 'Locale', 'Map', 'MissingFormatArgumentException', 'MissingFormatWidthException', 'MissingResourceException', 'NavigableMap', 'NavigableSet', 'NoSuchElementException', 'Objects', 'Observable', 'Observer', 'PriorityQueue', 'Properties', 'PropertyPermission', 'PropertyResourceBundle', 'Queue', 'Random', 'RandomAccess', 'ResourceBundle', 'Scanner', 'ServiceConfigurationError', 'ServiceLoader', 'Set', 'SimpleTimeZone', 'SortedMap', 'SortedSet', 'Stack', 'StringTokenizer', 'TimeZone', 'Timer', 'TimerTask', 'TooManyListenersException', 'TreeMap', 'TreeSet', 'UUID', 'UnknownFormatConversionException', 'UnknownFormatFlagsException', 'Vector', 'WeakHashMap', '__doc__', '__name__', '__package__', 'concurrent', 'jar', 'logging', 'prefs', 'regex', 'spi', 'zip']
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment