org.python.indexer.types
Class NTupleType
- java.lang.Object
-
- org.python.indexer.types.NType
-
- org.python.indexer.types.NTupleType
-
public class NTupleType extends NType
-
-
Constructor Summary
Constructors Constructor and Description NTupleType()NTupleType(java.util.List<NType> eltTypes)NTupleType(NType... types)NTupleType(NType elt0)NTupleType(NType elt0, NType elt1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(NType elt)NTypeget(int i)java.util.List<NType>getElementTypes()voidprintKids(org.python.indexer.types.NType.CyclicTypeRecorder ctr, java.lang.StringBuilder sb)Internal method to support printing in the presence of type-graph cycles.voidsetElementTypes(java.util.List<NType> eltTypes)NListTypetoListType()-
Methods inherited from class org.python.indexer.types.NType
asClassType, asDictType, asFuncType, asInstanceType, asListType, asModuleType, asTupleType, asUnionType, asUnknownType, follow, getTable, isClassType, isDictType, isFuncType, isInstanceType, isListType, isModuleType, isNative, isNumType, isStrType, isTupleType, isUnionType, isUnknownType, setTable, toString
-
-
-
-
Constructor Detail
-
NTupleType
public NTupleType()
-
NTupleType
public NTupleType(java.util.List<NType> eltTypes)
-
NTupleType
public NTupleType(NType elt0)
-
NTupleType
public NTupleType(NType... types)
-
-
Method Detail
-
setElementTypes
public void setElementTypes(java.util.List<NType> eltTypes)
-
getElementTypes
public java.util.List<NType> getElementTypes()
-
add
public void add(NType elt)
-
get
public NType get(int i)
-
toListType
public NListType toListType()
-
printKids
public void printKids(org.python.indexer.types.NType.CyclicTypeRecorder ctr, java.lang.StringBuilder sb)Description copied from class:NTypeInternal method to support printing in the presence of type-graph cycles.
-
-
DMelt 3.0 © DataMelt by jWork.ORG