Package org.jibx.ws.wsdl.tools
Class SignatureParser
- java.lang.Object
-
- org.jibx.ws.wsdl.tools.SignatureParser
-
public class SignatureParser extends java.lang.ObjectPull parser for generic method or field signature.- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description static intEND_EVENTprivate intm_eventprivate booleanm_isParameterizedprivate booleanm_isPrimitiveprivate intm_offsetprivate java.lang.Stringm_signatureprivate java.lang.Stringm_typestatic intMETHOD_PARAMETERS_END_EVENTstatic intMETHOD_PARAMETERS_START_EVENTprivate static java.lang.StringOBJECT_SIGNATUREprivate static java.lang.StringOBJECT_TYPEprivate static java.lang.StringSTRING_SIGNATUREprivate static java.lang.StringSTRING_TYPEstatic intTYPE_EVENTstatic intTYPE_PARAMETERS_END_EVENTstatic intTYPE_PARAMETERS_START_EVENT
-
Constructor Summary
Constructors Constructor Description SignatureParser(java.lang.String sig)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEvent()Get current event.java.lang.StringgetType()Get type.booleanisParameterized()Check if type is parameterized.booleanisPrimitive()Check if type is a primitive.intnext()Get next parse event.
-
-
-
Field Detail
-
END_EVENT
public static final int END_EVENT
- See Also:
- Constant Field Values
-
TYPE_EVENT
public static final int TYPE_EVENT
- See Also:
- Constant Field Values
-
METHOD_PARAMETERS_START_EVENT
public static final int METHOD_PARAMETERS_START_EVENT
- See Also:
- Constant Field Values
-
METHOD_PARAMETERS_END_EVENT
public static final int METHOD_PARAMETERS_END_EVENT
- See Also:
- Constant Field Values
-
TYPE_PARAMETERS_START_EVENT
public static final int TYPE_PARAMETERS_START_EVENT
- See Also:
- Constant Field Values
-
TYPE_PARAMETERS_END_EVENT
public static final int TYPE_PARAMETERS_END_EVENT
- See Also:
- Constant Field Values
-
STRING_SIGNATURE
private static final java.lang.String STRING_SIGNATURE
- See Also:
- Constant Field Values
-
STRING_TYPE
private static final java.lang.String STRING_TYPE
- See Also:
- Constant Field Values
-
OBJECT_SIGNATURE
private static final java.lang.String OBJECT_SIGNATURE
- See Also:
- Constant Field Values
-
OBJECT_TYPE
private static final java.lang.String OBJECT_TYPE
- See Also:
- Constant Field Values
-
m_signature
private final java.lang.String m_signature
-
m_offset
private int m_offset
-
m_event
private int m_event
-
m_isPrimitive
private boolean m_isPrimitive
-
m_isParameterized
private boolean m_isParameterized
-
m_type
private java.lang.String m_type
-
-
Method Detail
-
isParameterized
public boolean isParameterized()
Check if type is parameterized. It is an error to call this if the current event is notTYPE_EVENT.- Returns:
trueif parameterized type
-
isPrimitive
public boolean isPrimitive()
Check if type is a primitive. It is an error to call this if the current event is notTYPE_EVENT.- Returns:
trueif primitive type
-
getEvent
public int getEvent()
Get current event.- Returns:
- event
-
getType
public java.lang.String getType()
Get type. It is an error to call this if the current event is notTYPE_EVENT.- Returns:
- type
-
next
public int next()
Get next parse event.- Returns:
- event
-
-