constant_pool, length, name_index, tag| Constructor and Description |
|---|
Signature(int name_index,
int length,
int signature_index,
ConstantPool constant_pool) |
Signature(Signature c)
Initialize from another object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool _constant_pool) |
void |
dump(DataOutputStream file)
Dump source file attribute to file stream in binary format.
|
String |
getSignature() |
int |
getSignatureIndex() |
static boolean |
isActualParameterList(String s) |
static boolean |
isFormalParameterList(String s) |
void |
setSignatureIndex(int signature_index) |
String |
toString() |
static String |
translate(String s) |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndexpublic Signature(Signature c)
public Signature(int name_index,
int length,
int signature_index,
ConstantPool constant_pool)
name_index - Index in constant pool to CONSTANT_Utf8length - Content length in bytessignature_index - Index in constant pool to CONSTANT_Utf8constant_pool - Array of constantspublic void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
dump in class Attributefile - Output file streamIOExceptionpublic final int getSignatureIndex()
public final void setSignatureIndex(int signature_index)
signature_index - the index info the constant pool of this signaturepublic final String getSignature()
public static boolean isFormalParameterList(String s)
public static boolean isActualParameterList(String s)
public final String toString()
public Attribute copy(ConstantPool _constant_pool)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.