java.lang.Object
org.glassfish.rmic.iiop.ContextStack
ContextStack provides a mechanism to record parsing state.
- Author:
- Bryan Atsatt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true ifenv.nerrors > 0.voidclear()static final voidorg.glassfish.rmic.iiop.TypeContextGet the current top context.org.glassfish.rmic.iiop.TypeContextgetContext(int index) Get a specific context.Get a string for the context name...static StringgetContextCodeString(int contextCode) Get a string for the given context code...intGet the current context code.getEnv()Get the environment.org.glassfish.rmic.iiop.TypeContextGet parent context.booleanIs parent context a value type?booleanCheck trace flag.org.glassfish.rmic.iiop.TypeContextpop(boolean wasValid) Pop an element from the stack.org.glassfish.rmic.iiop.TypeContextpush(ContextElement element) Push a new element on the stack.voidsetNewContextCode(int code) Set the new context.voidsetTrace(boolean trace) Enable/disable tracing.intsize()Get the current size.
-
Field Details
-
TOP
public static final int TOP- See Also:
-
METHOD
public static final int METHOD- See Also:
-
METHOD_RETURN
public static final int METHOD_RETURN- See Also:
-
METHOD_ARGUMENT
public static final int METHOD_ARGUMENT- See Also:
-
METHOD_EXCEPTION
public static final int METHOD_EXCEPTION- See Also:
-
MEMBER
public static final int MEMBER- See Also:
-
MEMBER_CONSTANT
public static final int MEMBER_CONSTANT- See Also:
-
MEMBER_STATIC
public static final int MEMBER_STATIC- See Also:
-
MEMBER_TRANSIENT
public static final int MEMBER_TRANSIENT- See Also:
-
IMPLEMENTS
public static final int IMPLEMENTS- See Also:
-
EXTENDS
public static final int EXTENDS- See Also:
-
-
Constructor Details
-
ContextStack
Constructor.
-
-
Method Details
-
anyErrors
public boolean anyErrors()Return true ifenv.nerrors > 0. -
setTrace
public void setTrace(boolean trace) Enable/disable tracing. -
isTraceOn
public boolean isTraceOn()Check trace flag. -
getEnv
Get the environment. -
setNewContextCode
public void setNewContextCode(int code) Set the new context. -
getCurrentContextCode
public int getCurrentContextCode()Get the current context code. -
dumpCallStack
public static final void dumpCallStack() -
push
Push a new element on the stack.- Returns:
- the new element.
-
pop
public org.glassfish.rmic.iiop.TypeContext pop(boolean wasValid) Pop an element from the stack.- Returns:
- the new current element or null if top.
-
size
public int size()Get the current size. -
getContext
public org.glassfish.rmic.iiop.TypeContext getContext(int index) Get a specific context. -
getContext
public org.glassfish.rmic.iiop.TypeContext getContext()Get the current top context. -
isParentAValue
public boolean isParentAValue()Is parent context a value type? -
getParentContext
public org.glassfish.rmic.iiop.TypeContext getParentContext()Get parent context. Null if none. -
getContextCodeString
Get a string for the context name... -
getContextCodeString
Get a string for the given context code... -
clear
public void clear()
-