public abstract class NType
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
NType.CyclicTypeRecorder
Internal class to support printing in the presence of type-graph cycles.
|
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
LIBRARY_URL |
protected static java.lang.String |
REFERENCE_URL |
protected static java.lang.String |
TUTORIAL_URL |
| Constructor and Description |
|---|
NType() |
| Modifier and Type | Method and Description |
|---|---|
NClassType |
asClassType() |
NDictType |
asDictType() |
NFuncType |
asFuncType() |
NInstanceType |
asInstanceType() |
NListType |
asListType() |
NModuleType |
asModuleType() |
NTupleType |
asTupleType() |
NUnionType |
asUnionType() |
NUnknownType |
asUnknownType() |
NType |
follow()
Returns
NUnknownType.follow(org.python.indexer.types.NType) of this type. |
Scope |
getTable() |
boolean |
isClassType() |
boolean |
isDictType() |
boolean |
isFuncType() |
boolean |
isInstanceType() |
boolean |
isListType() |
boolean |
isModuleType() |
boolean |
isNative()
Returns
true if this Python type is implemented in native code
(i.e., C, Java, C# or some other host language.) |
boolean |
isNumType() |
boolean |
isStrType() |
boolean |
isTupleType() |
boolean |
isUnionType() |
boolean |
isUnknownType() |
protected void |
print(NType.CyclicTypeRecorder ctr,
java.lang.StringBuilder sb)
Internal method to support printing in the presence of type-graph cycles.
|
protected abstract void |
printKids(NType.CyclicTypeRecorder ctr,
java.lang.StringBuilder sb)
Internal method to support printing in the presence of type-graph cycles.
|
void |
setTable(Scope table) |
java.lang.String |
toString() |
protected static final java.lang.String LIBRARY_URL
protected static final java.lang.String TUTORIAL_URL
protected static final java.lang.String REFERENCE_URL
public void setTable(Scope table)
public Scope getTable()
public NType follow()
NUnknownType.follow(org.python.indexer.types.NType) of this type.public boolean isNative()
true if this Python type is implemented in native code
(i.e., C, Java, C# or some other host language.)public boolean isClassType()
public boolean isDictType()
public boolean isFuncType()
public boolean isInstanceType()
public boolean isListType()
public boolean isModuleType()
public boolean isNumType()
public boolean isStrType()
public boolean isTupleType()
public boolean isUnionType()
public boolean isUnknownType()
public NClassType asClassType()
public NDictType asDictType()
public NFuncType asFuncType()
public NInstanceType asInstanceType()
public NListType asListType()
public NModuleType asModuleType()
public NTupleType asTupleType()
public NUnionType asUnionType()
public NUnknownType asUnknownType()
public java.lang.String toString()
toString in class java.lang.Objectprotected void print(NType.CyclicTypeRecorder ctr, java.lang.StringBuilder sb)
protected abstract void printKids(NType.CyclicTypeRecorder ctr, java.lang.StringBuilder sb)