1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved. 2 * 3 * This program and the accompanying materials are made available under 4 * the terms of the Common Public License v1.0 which accompanies this distribution, 5 * and is available at http://www.eclipse.org/legal/cpl-v10.html 6 * 7 * $Id: BridgeAttribute_info.java,v 1.1.1.1.2.1 2004/07/10 03:34:52 vlad_r Exp $ 8 */ 9 package com.vladium.jcd.cls.attribute; 10 11 import java.io.IOException; 12 13 import com.vladium.jcd.lib.UDataOutputStream; 14 15 // ---------------------------------------------------------------------------- 16 /** 17 * New attribute added by J2SE 1.5 18 * 19 * @author Vlad Roubtsov, (C) 2003 20 */ 21 public 22 final class BridgeAttribute_info extends Attribute_info 23 { 24 // public: ................................................................ 25 26 27 public BridgeAttribute_info (final int attribute_name_index) 28 { 29 super (attribute_name_index, 0); 30 } 31 32 33 public long length () 34 { 35 return 6; 36 } 37 38 // Visitor: 39 40 public void accept (final IAttributeVisitor visitor, final Object ctx) 41 { 42 visitor.visit (this, ctx); 43 } 44 45 public String toString () 46 { 47 return "BridgeAttribute_info: [attribute_name_index = " + m_name_index + ", attribute_length = " + m_attribute_length + ']'; 48 } 49 50 // Cloneable: 51 52 /** 53 * Performs a deep copy. 54 */ 55 public Object clone () 56 { 57 return super.clone (); 58 } 59 60 // IClassFormatOutput: 61 62 public void writeInClassFormat (final UDataOutputStream out) throws IOException 63 { 64 super.writeInClassFormat (out); 65 } 66 67 // protected: ............................................................. 68 69 // package: ............................................................... 70 71 72 BridgeAttribute_info (final int attribute_name_index, final long attribute_length) 73 { 74 super (attribute_name_index, attribute_length); 75 } 76 77 // private: ............................................................... 78 79 } // end of class 80 // ---------------------------------------------------------------------------- 81 82