Top Description Methods
org.python.core

public Interface TraverseprocDerived

Known Direct Implementers
org.python.modules.PyStructDerived, org.python.modules.thread.PyLocalDerived, org.python.modules.bz2.PyBZ2CompressorDerived, org.python.modules.bz2.PyBZ2DecompressorDerived, org.python.modules.bz2.PyBZ2FileDerived, org.python.modules.itertools.chainDerived, org.python.modules.itertools.combinationsDerived, org.python.modules.itertools.combinationsWithReplacementDerived, org.python.modules.itertools.compressDerived, org.python.modules.itertools.countDerived, org.python.modules.itertools.cycleDerived, org.python.modules.itertools.dropwhileDerived, org.python.modules.itertools.groupbyDerived, org.python.modules.itertools.ifilterDerived, org.python.modules.itertools.ifilterfalseDerived, org.python.modules.itertools.imapDerived, org.python.modules.itertools.isliceDerived, org.python.modules.itertools.izipDerived, org.python.modules.itertools.izipLongestDerived, org.python.modules.itertools.permutationsDerived, org.python.modules.itertools.productDerived, org.python.modules.itertools.PyTeeIteratorDerived, org.python.modules.itertools.repeatDerived, org.python.modules.itertools.starmapDerived, org.python.modules.itertools.takewhileDerived, org.python.modules.random.PyRandomDerived, org.python.modules.zipimport.zipimporterDerived, org.python.modules._collections.PyDefaultDictDerived, org.python.modules._collections.PyDequeDerived, org.python.modules._csv.PyDialectDerived, org.python.modules._functools.PyPartialDerived, org.python.modules._io.PyFileIODerived, org.python.modules._io.PyIOBaseDerived, org.python.modules._io.PyRawIOBaseDerived, org.python.modules._json.EncoderDerived, org.python.modules._json.ScannerDerived, org.python.modules._weakref.ReferenceTypeDerived, org.python.antlr.ASTDerived, org.python.antlr.ast.aliasDerived, org.python.antlr.ast.argumentsDerived, org.python.antlr.ast.AssertDerived, org.python.antlr.ast.AssignDerived, org.python.antlr.ast.AttributeDerived, org.python.antlr.ast.AugAssignDerived, org.python.antlr.ast.BinOpDerived, org.python.antlr.ast.BoolOpDerived, org.python.antlr.ast.BreakDerived, org.python.antlr.ast.CallDerived, org.python.antlr.ast.ClassDefDerived, org.python.antlr.ast.CompareDerived, org.python.antlr.ast.comprehensionDerived, org.python.antlr.ast.ContinueDerived, org.python.antlr.ast.DeleteDerived, org.python.antlr.ast.DictDerived, org.python.antlr.ast.EllipsisDerived, org.python.antlr.ast.ExceptHandlerDerived, org.python.antlr.ast.ExecDerived, org.python.antlr.ast.ExprDerived, org.python.antlr.ast.ExpressionDerived, org.python.antlr.ast.ExtSliceDerived, org.python.antlr.ast.ForDerived, org.python.antlr.ast.FunctionDefDerived, org.python.antlr.ast.GeneratorExpDerived, org.python.antlr.ast.GlobalDerived, org.python.antlr.ast.IfDerived, org.python.antlr.ast.IfExpDerived, org.python.antlr.ast.ImportDerived, org.python.antlr.ast.ImportFromDerived, org.python.antlr.ast.IndexDerived, org.python.antlr.ast.InteractiveDerived, org.python.antlr.ast.keywordDerived, org.python.antlr.ast.LambdaDerived, org.python.antlr.ast.ListCompDerived, org.python.antlr.ast.ListDerived, org.python.antlr.ast.ModuleDerived, org.python.antlr.ast.NameDerived, org.python.antlr.ast.NumDerived, org.python.antlr.ast.PassDerived, org.python.antlr.ast.PrintDerived, org.python.antlr.ast.RaiseDerived, org.python.antlr.ast.ReprDerived, org.python.antlr.ast.ReturnDerived, org.python.antlr.ast.SetCompDerived, org.python.antlr.ast.SetDerived, org.python.antlr.ast.SliceDerived, org.python.antlr.ast.StrDerived, org.python.antlr.ast.SubscriptDerived, org.python.antlr.ast.SuiteDerived, org.python.antlr.ast.TryExceptDerived, org.python.antlr.ast.TryFinallyDerived, org.python.antlr.ast.TupleDerived, org.python.antlr.ast.UnaryOpDerived, org.python.antlr.ast.WhileDerived, org.python.antlr.ast.WithDerived, org.python.antlr.ast.YieldDerived, org.python.antlr.op.LShiftDerived, org.python.antlr.op.AddDerived, org.python.antlr.op.AndDerived, org.python.antlr.op.AugLoadDerived, org.python.antlr.op.AugStoreDerived, org.python.antlr.op.BitAndDerived, org.python.antlr.op.BitOrDerived, org.python.antlr.op.BitXorDerived, org.python.antlr.op.DelDerived, org.python.antlr.op.DivDerived, org.python.antlr.op.EqDerived, org.python.antlr.op.FloorDivDerived, org.python.antlr.op.GtDerived, org.python.antlr.op.GtEDerived, org.python.antlr.op.InDerived, org.python.antlr.op.InvertDerived, org.python.antlr.op.IsDerived, org.python.antlr.op.IsNotDerived, org.python.antlr.op.LoadDerived, org.python.antlr.op.LtDerived, org.python.antlr.op.LtEDerived, org.python.antlr.op.ModDerived, org.python.antlr.op.MultDerived, org.python.antlr.op.NotDerived, org.python.antlr.op.NotEqDerived, org.python.antlr.op.NotInDerived, org.python.antlr.op.OrDerived, org.python.antlr.op.ParamDerived, org.python.antlr.op.PowDerived, org.python.antlr.op.RShiftDerived, org.python.antlr.op.StoreDerived, org.python.antlr.op.SubDerived, org.python.antlr.op.UAddDerived, org.python.antlr.op.USubDerived, org.python.core.ClasspathPyImporterDerived, org.python.core.PyArrayDerived, org.python.core.PyBaseExceptionDerived, org.python.core.PyByteArrayDerived, org.python.core.PyClassMethodDerived, org.python.core.PyComplexDerived, org.python.core.PyDictionaryDerived, org.python.core.PyEnumerateDerived, org.python.core.PyFileDerived, org.python.core.PyFloatDerived, org.python.core.PyFrozenSetDerived, org.python.core.PyIntegerDerived, org.python.core.PyListDerived, org.python.core.PyLongDerived, org.python.core.PyModuleDerived, org.python.core.PyObjectDerived, org.python.core.PyPropertyDerived, org.python.core.PySetDerived, org.python.core.PyShadowStringDerived, org.python.core.PyStringDerived, org.python.core.PySuperDerived, org.python.core.PyTupleDerived, org.python.core.PyTypeDerived, org.python.core.PyUnicodeDerived

This is used like org.python.core.Traverseproc, but traverses only the slots[]-array of fooDerived-classes. This way we avoid that the traverse method of a traversable org.python.core.PyObject is overridden by the derived version. org.python.modules.gc#traverse(PyObject, Visitproc, Object) takes care of exploiting both traverse methods.

Method Summary

Modifier and TypeMethod and Description
public int
traverseDerived(Visitproc visit, Object arg)

Traverses all reachable PyObjects.

Method Detail

traverseDerivedback to summary
public int traverseDerived(Visitproc visit, Object arg)

Traverses all reachable PyObjects. Like in CPython, arg must be passed unmodified to visit as its second parameter.