Top Description Inners Constructors Methods
javassist.runtime

public Class Cflow

extends ThreadLocal<Cflow.Depth>
Class Inheritance

A support class for implementing $cflow. This support class is required at runtime only if $cflow is used.
See Also
javassist.CtBehavior#useCflow(String)

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
enter()

Increments the counter.

public void
exit()

Decrements the counter.

protected synchronized Cflow.Depth
initialValue()

Overrides java.lang.ThreadLocal.initialValue.

Returns the current thread's "initial value" for this thread-local variable.

public int
value()

Returns the value of the counter.

Inherited from java.lang.ThreadLocal:
getremovesetwithInitial

Constructor Detail

Cflowback to summary
public Cflow()

Method Detail

enterback to summary
public void enter()

Increments the counter.

exitback to summary
public void exit()

Decrements the counter.

initialValueback to summary
protected synchronized Cflow.Depth initialValue()

Overrides java.lang.ThreadLocal.initialValue.

Doc from java.lang.ThreadLocal.initialValue.

Returns the current thread's "initial value" for this thread-local variable. This method will be invoked the first time a thread accesses the variable with the get method, unless the thread previously invoked the set method, in which case the initialValue method will not be invoked for the thread. Normally, this method is invoked at most once per thread, but it may be invoked again in case of subsequent invocations of remove followed by get.

Returns:Cflow.Depth

the initial value for this thread-local

Annotations
@Override
valueback to summary
public int value()

Returns the value of the counter.

javassist.runtime back to summary

protected Class Cflow.Depth

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
dec()

pack-priv void
inc()

pack-priv int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

depthback to summary
private int depth

Constructor Detail

Depthback to summary
pack-priv Depth()

Method Detail

decback to summary
pack-priv void dec()
incback to summary
pack-priv void inc()
valueback to summary
pack-priv int value()