Top Fields Constructors Methods
org.python.indexer.types

public Class NListType

extends NType
Class Inheritance
Imports
org.python.indexer.Indexer, .NBinding, org.python.indexer.ast.NUrl

Field Summary

Modifier and TypeField and Description
private NType
Inherited from org.python.indexer.types.NType:
LIBRARY_URLREFERENCE_URLTUTORIAL_URL

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
add(NType another)

public NType
getElementType()

Returns the type of the elements.

public void
printKids(NType.CyclicTypeRecorder ctr, StringBuilder sb)

Implements abstract org.python.indexer.types.NType.printKids.

Internal method to support printing in the presence of type-graph cycles.

public void
public NTupleType
toTupleType(int n)

Inherited from org.python.indexer.types.NType:
asClassTypeasDictTypeasFuncTypeasInstanceTypeasListTypeasModuleTypeasTupleTypeasUnionTypeasUnknownTypefollowgetTableisClassTypeisDictTypeisFuncTypeisInstanceTypeisListTypeisModuleTypeisNativeisNumTypeisStrTypeisTupleTypeisUnionTypeisUnknownTypeprintsetTabletoString

Field Detail

eltTypeback to summary
private NType eltType

Constructor Detail

NListTypeback to summary
public NListType()
NListTypeback to summary
public NListType(NType elt0)

Method Detail

addback to summary
public void add(NType another)
getElementTypeback to summary
public NType getElementType()

Returns the type of the elements. You should wrap the result with NUnknownType#follow to get to the actual type.

printKidsback to summary
public void printKids(NType.CyclicTypeRecorder ctr, StringBuilder sb)

Implements abstract org.python.indexer.types.NType.printKids.

Doc from org.python.indexer.types.NType.printKids.

Internal method to support printing in the presence of type-graph cycles.

Annotations
@Override
setElementTypeback to summary
public void setElementType(NType eltType)
toTupleTypeback to summary
public NTupleType toTupleType(int n)