Top Description Inners Fields Constructors Methods
org.jruby.javasupport

public Class JavaPackage

extends RubyModule
Class Inheritance
Annotations
@JRubyClass
name:Java::JavaPackage
parent:Module
Imports
org.jruby.IncludedModuleWrapper, .MetaClass, .Ruby, .RubyBoolean, .RubyClass, .RubyModule, .RubyString, .RubySymbol, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.exceptions.RaiseException, org.jruby.internal.runtime.methods.DynamicMethod, .NullMethod, org.jruby.runtime.Arity, .Block, .ObjectAllocator, .Signature, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ClassProvider

A "thin" Java package wrapper (for the runtime to see them as Ruby objects).
Author
kares
Since
9K

Note: previously JavaPackageModuleTemplate in Ruby code

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
JavaPackage.BlankSlateWrapper

This special module wrapper is used by the Java "package modules" in order to simulate a blank slate.

private static class

Field Summary

Modifier and TypeField and Description
pack-priv final String
Inherited from org.jruby.RubyModule:
baseNameBUILTIN_CONSTANTcachedMethodsCACHEPROXY_FclassIndexgenerationgenerationObjectidINCLUDED_INTO_REFINEMENTincludingHierarchiesindexIS_OVERLAID_FkindOfmethodInvalidatormethodLocationmethodsMODULE_ALLOCATORNEEDSIMPL_FNormalCacheEntryFactoryOMOD_SHAREDparentREFINED_MODULE_FSCOPE_CAPTURING_METHODSsuperClassTEMPORARY_NAME

Constructor Summary

AccessConstructor and Description
private
JavaPackage(final Ruby runtime, final CharSequence packageName)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
pack-priv static CharSequence
buildPackageName(final RubyModule parentPackage, final String name)

private RubyBoolean
checkMetaClassBoundMethod(final ThreadContext context, final String name, final boolean includePrivate)

public final IRubyObject
public final IRubyObject
const_get(final ThreadContext context, final IRubyObject name, final IRubyObject inherit)

Overrides org.jruby.RubyModule.const_get.

public IRubyObject
const_missing(final ThreadContext context, final IRubyObject name)

pack-priv static RubyClass
public final IRubyObject
fetchConstant(ThreadContext context, String name, boolean includePrivate)

Overrides org.jruby.RubyModule.fetchConstant.

private Package
public String
public final boolean
public IRubyObject
inspect(ThreadContext context)

Overrides org.jruby.RubyBasicObject.inspect.

Overrides default org.jruby.runtime.builtin.IRubyObject.inspect.

Returns a string containing a human-readable representation of obj.

public final boolean
public IRubyObject
public IRubyObject
method_missing(ThreadContext context, final IRubyObject[] args)

pack-priv static RubyModule
newPackage(Ruby runtime, CharSequence name, RubyModule parent)

public RubyBoolean
public RubyString
package_name()
Deprecated since 10.0.

public RubyString
pack-priv static RaiseException
packageMethodArgumentMismatch(ThreadContext context, final RubyModule pkg, final String method, final int argsLength)

pack-priv final CharSequence
private RubyModule
relativeJavaClassOrPackage(final ThreadContext context, final IRubyObject name, final boolean cacheMethod)

pack-priv RubyModule
relativeJavaProxyClass(final Ruby runtime, final IRubyObject name)
Deprecated since 10.0.

private IRubyObject
respond_to(final ThreadContext context, IRubyObject mname, final boolean includePrivate)

private RubyBoolean
respond_to_missing(final ThreadContext context, IRubyObject mname, final boolean includePrivate)

public IRubyObject
public IRubyObject
respond_to_missing_p(final ThreadContext context, IRubyObject name, IRubyObject includePrivate)

public IRubyObject
respond_to_p(final ThreadContext context, IRubyObject name)

public IRubyObject
respond_to_p(final ThreadContext context, IRubyObject name, IRubyObject includePrivate)

public IRubyObject
public RubyString
to_s()

Overrides org.jruby.RubyModule.to_s.

Deprecated since 10.0.

public IRubyObject
to_s(ThreadContext context)

Overrides org.jruby.RubyModule.to_s.

rb_mod_to_s

public <T> T
toJava(Class<T>
The target type to which the object should be converted.
target
)

Overrides org.jruby.RubyModule.toJava.

Implements org.jruby.runtime.builtin.IRubyObject.toJava.

Convert the object to the specified Java class, if possible.

Inherited from org.jruby.RubyModule:
_module_function_private_protected_publicaddClassProvideraddIncludingHierarchyaddMethodaddMethodaddMethodInternaladdMethodInternaladdMethodSymbolsaddMethodSymbolsaddModuleFunctionaddReadAttributeaddReadWriteAttributeaddToCacheaddToCacheaddWriteAttributealias_methodaliasMethodancestorsancestorsappend_featuresappend_featuresattrattr_accessorattr_accessorattr_readerattr_readerattr_writerautoloadautoload_pautoload_pautoloadingValueautoloadingValuebaseNamebecomeSynchronizedcheckForCyclicPrependcheckFrozencheckValidBindTargetFromclass_variable_defined_pclass_variable_getclass_variable_getclass_variable_get19class_variable_setclass_variable_setclass_variable_set19class_variablesclass_variablesclassIndexcloneMethodscloneMethodsconst_addedconst_defined_pconst_defined_pconst_getconst_getconst_get_1_9const_get_2_0const_missingconst_setconst_setconst_source_locationconstantEntryFetchconstantsconstantsconstantsCommonconstantsCommonconstantTableContainsconstantTableFetchconstantTableRemoveconstantTableStoreconstantTableStoreconstantTableStoreconstantTableStoreconstDefinedconstDefinedconstDefinedAtconstDefinedAtconstDefinedFromconstDefinedFromdefine_methoddefine_methoddefine_methoddefineAliasdefineAliasdefineAliasesdefineAnnotatedConstantdefineAnnotatedConstantsdefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethodsdefineAnnotatedMethodsIndividuallydefineAutoloaddefineAutoloaddefineClassUnderdefineClassUnderdefineClassUnderdefineConstantdefineConstantdefineConstantdefineConstantBootstrapdefineConstantsdefineConstantsFromdefineMethodFromBlockdefineMethodFromCallabledefineMethodsdefineModuleUnderdefineModuleUnderdefineOrGetClassUnderdefineOrGetClassUnderdefineOrGetClassUnderdefineOrGetClassUnderdefineOrGetModuleUnderdefineOrGetModuleUnderdefineOrGetModuleUnderdeleteClassVariabledeleteConstantdeleteConstantdeprecate_constantdeprecate_constantdeprecateConstantdeprecateConstantdiscoverInstanceVariablesensureClassVariablesSettableensureConstantsSettableequalsexportMethodextend_objectextend_objectextendedfastFetchClassVariablefastFetchConstantfastGetClassfastGetClassVarfastGetConstantfastGetConstantfastGetConstantAtfastGetConstantFromfastGetConstantFromConstMissingfastGetConstantFromNoConstMissingfastHasClassVariablefastHasConstantfastIsClassVarDefinedfastIsConstantDefinedfastSetClassVarfastSetConstantfastStoreClassVariablefastStoreConstantfetchClassVariablefetchConstantfetchConstantfetchConstantfetchConstantEntryfetchConstantEntryfindImplementerfinishAutoloadfinishAutoloadfinishCreateModuleClassfinishModuleClassfinishRefinementClassfreezegetAncestorListgetAutoloadConstantgetAutoloadConstantgetAutoloadConstantgetAutoloadConstantgetAutoloadFilegetAutoloadMapgetAutoloadMapForWritegetBaseNamegetCachedMethodsgetCacheProxygetCacheTokengetClassgetClassgetClassIndexgetClassVargetClassVargetClassVargetClassVargetClassVariableNameListgetClassVariablesgetClassVariablesForReadgetClassVarQuietgetConstantgetConstantgetConstantgetConstantgetConstantgetConstantgetConstantAtgetConstantAtgetConstantAtgetConstantAtgetConstantAtSpecialgetConstantAtSpecialgetConstantFromgetConstantFromgetConstantFromConstMissinggetConstantFromConstMissinggetConstantFromNoConstMissinggetConstantFromNoConstMissinggetConstantFromNoConstMissinggetConstantFromNoConstMissinggetConstantMapgetConstantMapForWritegetConstantNamesgetConstantNamesgetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissingSkipAutoloadgetConstantNoConstMissingSkipAutoloadgetConstantNoConstMissingSKipAutoloadgetConstantSourceLocationgetConstantSourceLocationgetConstantWithAutoloadgetConstantWithAutoloadgetDelegategetGenerationgetGenerationObjectgetIdTestgetIncludingHierarchiesForWritegetInvalidatorgetJavaProxygetMethodLocationgetMethodsgetMethodsForWritegetModulegetModulegetNamegetNamegetNativeClassIndexgetNonIncludedClassgetOrigingetParentgetRealModulegetRefinementsgetRefinementsForWritegetSimpleNamegetSimpleNamegetStoredConstantListgetStoredConstantNameListgetSuperClasshasAncestorhasAutoloadhasClassVariablehashhashCodehasInternalModuleVariablehasModuleInHierarchyhasModuleInPrependshasPrependsincludeincludeincludeincludeinclude_pincludedincluded_modulesincludeModuleincludeModuleinitializeinitializeinitialize_copyinstance_methodinstance_methodinstance_methodsinstance_methodsinstance_methods19instanceMethodsinstanceMethodsinstanceMethodsinvalidateCacheDescendantsinvalidateCacheDescendantsinvalidateConstantCacheinvalidateConstantCacheinvalidateConstantCachesinvalidateCoreClassesisClassisClassVarDefinedisConstantDefinedisConstantDefinedisConstantDefinedisIncludedisIncludedIntoRefinementisInstanceisKindOfModuleisMethodBoundisMethodBoundisMethodBuiltinisModuleisPrependedisRefinementisSameisSameOriginisSingletonisSynchronizedisValidConstantNameisValidConstantPathkindOfloadPopulatorFormarshalTomarshalTomethod_addedmethod_defined_pmethod_defined_pmethod_removedmethod_undefinedmethodAddedmixmixmodule_evalmodule_evalmodule_evalmodule_evalmodule_evalmodule_execmodule_execmodule_functionnamenameneedsImplementernestingnewActivatedRefinementsMapnewIdTestnewIncludeClassnewMethodnewMethodnewMethodnewMethodnewMethodnewMethodnewMethodnewModulenewModulenewModulenewModulenewModuleBootstrapnewRefinementsMapnewRefinementsMapop_cmpop_cmpop_equalop_geop_geop_gtop_gtop_leop_leop_ltop_ltprependprepend_featuresprepend_featuresprependedprependModuleprependModuleprependModuleprivate_class_methodprivate_class_methodprivate_constantprivate_constantprivate_instance_methodsprivate_instance_methodsprivate_method_definedprivate_method_definedprotected_instance_methodsprotected_instance_methodsprotected_method_definedprotected_method_definedpublic_class_methodpublic_class_methodpublic_constantpublic_constantpublic_instance_methodpublic_instance_methodpublic_instance_methodspublic_instance_methodspublic_instance_methods19public_method_definedpublic_method_definedpublicConstDefinedFrompublicConstDefinedFromputAliasputAliasputAliasputAliasputMethodputMethodrbPrivaterbProtectedrbPublicrefinerefined_classrefinementsremove_class_variableremove_class_variable19remove_constremove_methodremoveClassProviderremoveClassVariableremoveClassVariableremoveMethodresolveRefinedMethodresolveUndefConstantrespondsToMethodrespondsToMethodretrieveMethodruby2_keywordsrubyBaseNamerubyBaseNamerubyNamerubyNamesearchAncestorsearchInternalModuleVariablesearchMethodsearchMethodCommonsearchMethodEntryInnersearchMethodInnersearchMethodLateralsearchWithCachesearchWithCachesearchWithRefinementsset_temporary_namesetBaseNamesetCacheProxysetClassVarsetClassVarsetConstantsetConstantsetConstantsetConstantsetConstantsetConstantsetConstantQuietsetConstantQuietsetConstantVisibilitysetConstantVisibilitysetInternalModuleVariablesetJavaProxysetMethodLocationsetMethodVisibilitysetMethodVisibilitysetParentsetRefinementssetSuperClasssingleton_class_pstoreClassVariablestoreClassVariablestoreConstantstoreConstantstoreConstantstoreConstantstoreConstantsuperClasssuperClasssymbolNamesymbolNamesyncClassVariablessyncConstantstaptargettestModuleMatchundefundef_methodundefined_instance_methodundefinedMethodMessageundefineMethodundefMethodsunmarshalFromunmarshalFromupdateGenerationused_modulesused_refinementsusingusingModuleusingTemporaryNamevalidateClassVariablevalidateClassVariablevalidateClassVariablevalidateClassVariablevalidateConstantvalidateConstantvalidateConstant