org.python.indexer
Class Builtins
- java.lang.Object
-
- org.python.indexer.Builtins
-
public class Builtins extends java.lang.ObjectInitializes the built-in types, functions and modules. This approach was easy (if tedious) to implement, but longer-term it would be better to define these type signatures in python "externs files", using a standard type annotation syntax.
-
-
Field Summary
Fields Modifier and Type Field and Description NClassTypeBaseArrayNClassTypeBaseBoolNClassTypeBaseClassNClassTypeBaseComplexNClassTypeBaseDictNClassTypeBaseExceptionNClassTypeBaseFileNClassTypeBaseFunctionNClassTypeBaseListNClassTypeBaseModuleNClassTypeBaseNumNClassTypeBaseStrNClassTypeBaseStructNClassTypeBaseTupleNModuleTypeBuiltinstatic java.lang.StringDATAMODEL_URLNClassTypeDatetime_dateNClassTypeDatetime_datetimeNClassTypeDatetime_timeNClassTypeDatetime_timedeltaNClassTypeDatetime_tzinfostatic java.lang.StringLIBRARY_URLNClassTypeNoneNClassTypeObjectstatic java.lang.StringREFERENCE_URLNClassTypeTime_struct_timestatic java.lang.StringTUTORIAL_URLNClassTypeType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description NModuleTypeget(java.lang.String name)Loads (if necessary) and returns the specified built-in module.booleanisNative(NType type)static NUrlnewDataModelUrl(java.lang.String path)static NUrlnewLibUrl(java.lang.String path)static NUrlnewLibUrl(java.lang.String module, java.lang.String name)static NUrlnewRefUrl(java.lang.String path)static NUrlnewTutUrl(java.lang.String path)
-
-
-
Field Detail
-
LIBRARY_URL
public static final java.lang.String LIBRARY_URL
- See Also:
- Constant Field Values
-
TUTORIAL_URL
public static final java.lang.String TUTORIAL_URL
- See Also:
- Constant Field Values
-
REFERENCE_URL
public static final java.lang.String REFERENCE_URL
- See Also:
- Constant Field Values
-
DATAMODEL_URL
public static final java.lang.String DATAMODEL_URL
- See Also:
- Constant Field Values
-
Builtin
public NModuleType Builtin
-
Object
public NClassType Object
-
Type
public NClassType Type
-
None
public NClassType None
-
BaseNum
public NClassType BaseNum
-
BaseComplex
public NClassType BaseComplex
-
BaseBool
public NClassType BaseBool
-
BaseStr
public NClassType BaseStr
-
BaseList
public NClassType BaseList
-
BaseArray
public NClassType BaseArray
-
BaseDict
public NClassType BaseDict
-
BaseTuple
public NClassType BaseTuple
-
BaseModule
public NClassType BaseModule
-
BaseFile
public NClassType BaseFile
-
BaseException
public NClassType BaseException
-
BaseStruct
public NClassType BaseStruct
-
BaseFunction
public NClassType BaseFunction
-
BaseClass
public NClassType BaseClass
-
Datetime_datetime
public NClassType Datetime_datetime
-
Datetime_date
public NClassType Datetime_date
-
Datetime_time
public NClassType Datetime_time
-
Datetime_timedelta
public NClassType Datetime_timedelta
-
Datetime_tzinfo
public NClassType Datetime_tzinfo
-
Time_struct_time
public NClassType Time_struct_time
-
-
Method Detail
-
newLibUrl
public static NUrl newLibUrl(java.lang.String module, java.lang.String name)
-
newLibUrl
public static NUrl newLibUrl(java.lang.String path)
-
newRefUrl
public static NUrl newRefUrl(java.lang.String path)
-
newDataModelUrl
public static NUrl newDataModelUrl(java.lang.String path)
-
newTutUrl
public static NUrl newTutUrl(java.lang.String path)
-
get
public NModuleType get(java.lang.String name)
Loads (if necessary) and returns the specified built-in module.
-
isNative
public boolean isNative(NType type)
-
-
DMelt 3.0 © DataMelt by jWork.ORG