org.python.indexer.types
Class NType
- java.lang.Object
-
- org.python.indexer.types.NType
-
- Direct Known Subclasses:
- NClassType, NDictType, NFuncType, NInstanceType, NListType, NModuleType, NTupleType, NUnionType, NUnknownType
public abstract class NType extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description NType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description NClassTypeasClassType()NDictTypeasDictType()NFuncTypeasFuncType()NInstanceTypeasInstanceType()NListTypeasListType()NModuleTypeasModuleType()NTupleTypeasTupleType()NUnionTypeasUnionType()NUnknownTypeasUnknownType()NTypefollow()ReturnsNUnknownType.follow(org.python.indexer.types.NType)of this type.ScopegetTable()booleanisClassType()booleanisDictType()booleanisFuncType()booleanisInstanceType()booleanisListType()booleanisModuleType()booleanisNative()Returnstrueif this Python type is implemented in native code (i.e., C, Java, C# or some other host language.)booleanisNumType()booleanisStrType()booleanisTupleType()booleanisUnionType()booleanisUnknownType()voidsetTable(Scope table)java.lang.StringtoString()
-
-
-
Method Detail
-
setTable
public void setTable(Scope table)
-
getTable
public Scope getTable()
-
follow
public NType follow()
ReturnsNUnknownType.follow(org.python.indexer.types.NType)of this type.
-
isNative
public boolean isNative()
Returnstrueif this Python type is implemented in native code (i.e., C, Java, C# or some other host language.)
-
isClassType
public boolean isClassType()
-
isDictType
public boolean isDictType()
-
isFuncType
public boolean isFuncType()
-
isInstanceType
public boolean isInstanceType()
-
isListType
public boolean isListType()
-
isModuleType
public boolean isModuleType()
-
isNumType
public boolean isNumType()
-
isStrType
public boolean isStrType()
-
isTupleType
public boolean isTupleType()
-
isUnionType
public boolean isUnionType()
-
isUnknownType
public boolean isUnknownType()
-
asClassType
public NClassType asClassType()
-
asDictType
public NDictType asDictType()
-
asFuncType
public NFuncType asFuncType()
-
asInstanceType
public NInstanceType asInstanceType()
-
asListType
public NListType asListType()
-
asModuleType
public NModuleType asModuleType()
-
asTupleType
public NTupleType asTupleType()
-
asUnionType
public NUnionType asUnionType()
-
asUnknownType
public NUnknownType asUnknownType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG