Package org.jibx.ws.wsdl.tools
Class SignatureParser
- java.lang.Object
-
- org.jibx.ws.wsdl.tools.SignatureParser
-
public class SignatureParser extends java.lang.Object
Pull parser for generic method or field signature.- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description static int
END_EVENT
private int
m_event
private boolean
m_isParameterized
private boolean
m_isPrimitive
private int
m_offset
private java.lang.String
m_signature
private java.lang.String
m_type
static int
METHOD_PARAMETERS_END_EVENT
static int
METHOD_PARAMETERS_START_EVENT
private static java.lang.String
OBJECT_SIGNATURE
private static java.lang.String
OBJECT_TYPE
private static java.lang.String
STRING_SIGNATURE
private static java.lang.String
STRING_TYPE
static int
TYPE_EVENT
static int
TYPE_PARAMETERS_END_EVENT
static int
TYPE_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 int
getEvent()
Get current event.java.lang.String
getType()
Get type.boolean
isParameterized()
Check if type is parameterized.boolean
isPrimitive()
Check if type is a primitive.int
next()
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:
true
if 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:
true
if 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
-
-