Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

27
LINES

< > BotCompany Repo | #1035315 // BCELParameterizedType - parameterized type representation for BCEL (not needed, actually)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (8018L) is out of date.

!include once #1019934 // BCEL [Include]

/* Examples from javap -s -v:

  java.util.List<java.lang.String> bla;
    descriptor: Ljava/util/List;
    Signature: #12 // Ljava/util/List<Ljava/lang/String;>;
    
  java.util.Map<java.lang.Integer, java.lang.Long> map;
    descriptor: Ljava/util/Map;
    Signature: #15 // Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/Long;>;
    
*/

sclass BCELParameterizedType extends ObjectType {
  *(S className, S... parameterClassNames) {
    super(className);
    if (nempty(parameterClassNames))
      setSignature(classNameToByteCodeFormat(className)
        + "<" + joinMap(parameterClassNames, name
          -> classNameToByteCodeFormat(name) + ";") + ">;");
  }
  
  public void setSignature(S signature) {
    this.signature = signature;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035315
Snippet name: BCELParameterizedType - parameterized type representation for BCEL (not needed, actually)
Eternal ID of this version: #1035315/6
Text MD5: a0aab4c3ce79885081e336ce4aeed0d3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-01 01:49:49
Source code size: 817 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 116
Version history: 5 change(s)
Referenced in: [show references]