public abstract class AbstractStateObjectBuilder
extends java.lang.Object
StateObject
hierarchy based on a JPQL fragment
that is manually created.Modifier | Constructor and Description |
---|---|
protected |
AbstractStateObjectBuilder()
Creates a new
AbstractStateObjectBuilder . |
Modifier and Type | Method and Description |
---|---|
protected void |
add(StateObject stateObject)
Adds the given
StateObject to the stack for future use, which will be removed from
the stack to complete the creation of another StateObject . |
protected void |
checkBuilder(IScalarExpressionStateObjectBuilder<?> builder)
Makes sure the given
builder is this one. |
protected <T extends IScalarExpressionStateObjectBuilder<?>> |
checkBuilders(T... builders)
Makes sure the given
builder is this one. |
protected boolean |
hasStateObjects()
Determines whether the stack of
StateObjects is not empty. |
protected StateObject |
pop()
Retrieves the
StateObject that is on the stack. |
protected AbstractStateObjectBuilder()
AbstractStateObjectBuilder
.protected void add(StateObject stateObject)
StateObject
to the stack for future use, which will be removed from
the stack to complete the creation of another StateObject
.stateObject
- The newly created StateObject
protected final void checkBuilder(IScalarExpressionStateObjectBuilder<?> builder)
builder
is this one.builder
- The builder that was passed as an argument, which is only meant to create the
stack of StateObjects
in the right orderprotected final <T extends IScalarExpressionStateObjectBuilder<?>> void checkBuilders(T... builders)
builder
is this one.builders
- The builders that were passed as arguments, which is only meant to create the
stack of StateObjects
in the right orderprotected boolean hasStateObjects()
StateObjects
is not empty.true
if the stack is not empty; false
otherwiseprotected final StateObject pop()
StateObject
that is on the stack.StateObject
that was added on the stack