Class IcTuple
- java.lang.Object
-
- org.apache.commons.compress.harmony.unpack200.IcTuple
-
public class IcTuple extends java.lang.Object
An IcTuple is the set of information that describes an inner class. C is the fully qualified class name
F is the flags
C2 is the outer class name, or null if it can be inferred from C
N is the inner class name, or null if it can be inferred from C
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
C
protected java.lang.String
C2
protected int
F
protected java.lang.String
N
static int
NESTED_CLASS_FLAG
-
Constructor Summary
Constructors Constructor Description IcTuple(java.lang.String C, int F, java.lang.String C2, java.lang.String N, int cIndex, int c2Index, int nIndex, int tIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
java.lang.String
getC()
java.lang.String
getC2()
int
getF()
java.lang.String
getN()
int
getTupleIndex()
int
hashCode()
java.lang.String[]
innerBreakAtDollar(java.lang.String className)
Break the receiver into components at $ boundaries.boolean
isAnonymous()
boolean
isMember()
boolean
nestedExplicitFlagSet()
Answer true if the receiver's bit 16 is set (indicating that explicit outer class and name fields are set).boolean
nullSafeEquals(java.lang.String stringOne, java.lang.String stringTwo)
int
outerClassIndex()
java.lang.String
outerClassString()
Answer the outer class name for the receiver.boolean
outerIsAnonymous()
boolean
predicted()
Answer true if the receiver is predicted; answer false if the receiver is specified explicitly in the outer and name fields.java.lang.String
simpleClassName()
Answer the inner class name for the receiver.int
simpleClassNameIndex()
int
thisClassIndex()
java.lang.String
thisClassString()
Answer the full name of the inner class represented by this tuple (including its outer component)java.lang.String
toString()
-
-
-
Field Detail
-
NESTED_CLASS_FLAG
public static final int NESTED_CLASS_FLAG
- See Also:
- Constant Field Values
-
C
protected java.lang.String C
-
F
protected int F
-
C2
protected java.lang.String C2
-
N
protected java.lang.String N
-
-
Constructor Detail
-
IcTuple
public IcTuple(java.lang.String C, int F, java.lang.String C2, java.lang.String N, int cIndex, int c2Index, int nIndex, int tIndex)
- Parameters:
C
- TODOF
- TODOC2
- TODON
- TODOcIndex
- the index of C in cpClassc2Index
- the index of C2 in cpClass, or -1 if C2 is nullnIndex
- the index of N in cpUTF8, or -1 if N is nulltIndex
- TODO
-
-
Method Detail
-
predicted
public boolean predicted()
Answer true if the receiver is predicted; answer false if the receiver is specified explicitly in the outer and name fields.- Returns:
- true if the receiver is predicted; answer false if the receiver is specified explicitly in the outer and name fields.
-
nestedExplicitFlagSet
public boolean nestedExplicitFlagSet()
Answer true if the receiver's bit 16 is set (indicating that explicit outer class and name fields are set).- Returns:
- boolean
-
innerBreakAtDollar
public java.lang.String[] innerBreakAtDollar(java.lang.String className)
Break the receiver into components at $ boundaries.- Parameters:
className
- TODO- Returns:
- TODO
-
outerClassString
public java.lang.String outerClassString()
Answer the outer class name for the receiver. This may either be specified or inferred from inner class name.- Returns:
- String name of outer class
-
simpleClassName
public java.lang.String simpleClassName()
Answer the inner class name for the receiver.- Returns:
- String name of inner class
-
thisClassString
public java.lang.String thisClassString()
Answer the full name of the inner class represented by this tuple (including its outer component)- Returns:
- String full name of inner class
-
isMember
public boolean isMember()
-
isAnonymous
public boolean isAnonymous()
-
outerIsAnonymous
public boolean outerIsAnonymous()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
nullSafeEquals
public boolean nullSafeEquals(java.lang.String stringOne, java.lang.String stringTwo)
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getC
public java.lang.String getC()
-
getF
public int getF()
-
getC2
public java.lang.String getC2()
-
getN
public java.lang.String getN()
-
getTupleIndex
public int getTupleIndex()
-
thisClassIndex
public int thisClassIndex()
-
outerClassIndex
public int outerClassIndex()
-
simpleClassNameIndex
public int simpleClassNameIndex()
-
-