it.imolinfo.jbi4corba.webservice.generator.bcm
Class InternalMethodDescriptionParser

java.lang.Object
  extended by it.imolinfo.jbi4corba.webservice.generator.bcm.InternalMethodDescriptionParser

public class InternalMethodDescriptionParser
extends Object

Parses the parameter types from a methond internal description. * The descriptors of the primitive types are single characters: Z for boolean, C for char, B for byte, S for short, I for int, F for float, J for long and D for double. The descriptor of a class type is the internal name of this class, preceded by L and followed by a semicolon. For instance the type descriptor of String is Ljava/lang/String;. Finally the descriptor of an array type is a square bracket followed by the descriptor of the array element type. Examples are:

  • I -> int
  • [I ->int[]
  • Ljava/lang/String; -> String
  • [Ljava/lang/String -> String[] A method description contains the parameter list with the return type, for example:
    ([Lit/imolinfo/jbi4corba/test/webservice/generator/EchoStruct;[ILorg/omg/CORBA/StringHolder;)Ljava/lang/String; This first implementation parses only the method paramter form the wholde description.

    Author:
    marco

    Constructor Summary
    InternalMethodDescriptionParser(String desc)
               
     
    Method Summary
     String getMethodDescriptionTail()
               
     List<String> parse()
              Parses the description string, separating the method "tail" (with the return type) and returns the array of parameters (in internal form).
     void setMethodDescriptionTail(String methodDescriptionTail)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    InternalMethodDescriptionParser

    public InternalMethodDescriptionParser(String desc)
    Method Detail

    parse

    public List<String> parse()
    Parses the description string, separating the method "tail" (with the return type) and returns the array of parameters (in internal form).

    Returns:

    getMethodDescriptionTail

    public String getMethodDescriptionTail()

    setMethodDescriptionTail

    public void setMethodDescriptionTail(String methodDescriptionTail)


    Copyright © 2005-2010 Imola Informatica. All Rights Reserved.