Package com.fasterxml.classmate.util
Class ClassStack
java.lang.Object
com.fasterxml.classmate.util.ClassStack
Simple helper class used to keep track of 'call stack' for classes being referenced
(as well as unbound variables)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Class
<?> protected final ClassStack
private ArrayList
<ResolvedRecursiveType> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClassStack
(ClassStack parent, Class<?> curr) ClassStack
(Class<?> rootType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method called to indicate that there is a self-reference from deeper down in stack pointing into type this stack frame represents.void
resolveSelfReferences
(ResolvedType resolved) Method called when type that this stack frame represents is fully resolved, allowing self-references to be completed (if there are any)
-
Field Details
-
_parent
-
_current
-
_selfRefs
-
-
Constructor Details
-
ClassStack
-
ClassStack
-
-
Method Details
-
child
- Returns:
- New stack frame, if addition is ok; null if not
-
addSelfReference
Method called to indicate that there is a self-reference from deeper down in stack pointing into type this stack frame represents. -
resolveSelfReferences
Method called when type that this stack frame represents is fully resolved, allowing self-references to be completed (if there are any) -
find
-