LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Tue Feb 26 00:29:36 CET 2008
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/08/02 26:00:29

    Modified: jop/java/tools/src/com/jopdesign/libgraph/struct/type
    TypeHelper.java
    Log:
    fixes for incomplete code loading, added more array handling code


    Revision Changes Path
    1.2 jop/java/tools/src/com/jopdesign/libgraph/struct/type/TypeHelper.java

    http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/libgraph/struct/type/TypeHelper.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: TypeHelper.java
    ===================================================================
    RCS file: /cvsroot/stefant/jop/java/tools/src/com/jopdesign/libgraph/struct/type/TypeHelper.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- TypeHelper.java 13 Jan 2008 20:29:33 -0000 1.1
    +++ TypeHelper.java 25 Feb 2008 23:29:35 -0000 1.2
    @@ -87,6 +87,24 @@
    return new MethodSignature(name, retType, paramTypes);
    }

    + /**
    + * Get the first classname within this type string.
    + * @param type the type string to be searched.
    + * @return the first classname or null if not found.
    + */
    + public static String getClassName(String type) {
    + int start = type.indexOf("L");
    + if ( start == -1 ) {
    + return null;
    + }
    + int end = type.indexOf(";", ++start);
    + if ( end == -1 ) {
    + return null;
    + }
    +
    + return type.substring(start, end).replace("/",".");
    + }
    +
    private static RetType parseType(AppStruct appStruct, String type, int pos) throws TypeException {

    char c = type.charAt(pos++);



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.