Top Description Fields Constructors Methods
org.apache.commons.compress.harmony.unpack200

public Class IcTuple

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List

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

Modifier and TypeField and Description
private boolean
protected String
C

protected String
private final int
private int
private int
private String
private String
private int
private final int
pack-priv static final IcTuple[]
private static final String[]
protected int
F

private boolean
private boolean
private boolean
protected String
N

public static final int
private final int
private boolean
private boolean
private boolean
private final int

Constructor Summary

AccessConstructor and Description
public
IcTuple(final String
TODO
C
,
final int
TODO
F
,
final String
TODO
C2
,
final String
TODO
N
,
final int
the index of C in cpClass
cIndex
,
final int
the index of C2 in cpClass, or -1 if C2 is null
c2Index
,
final int
the index of N in cpUTF8, or -1 if N is null
nIndex
,
final int
TODO
tIndex
)

Method Summary

Modifier and TypeMethod and Description
private boolean
public boolean
equals(final Object
the reference object with which to compare.
object
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
private void
public String
getC()

public String
public int
getF()

public String
getN()

public int
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
private void
public String[]

Returns:

TODO
innerBreakAtDollar
(final String
TODO
className
)

Break the receiver into components at $ boundaries.

private boolean
isAllDigits(final String nameString)

public boolean
public boolean
public boolean

Returns:

boolean
nestedExplicitFlagSet
()

Answer true if the receiver's bit 16 is set (indicating that explicit outer class and name fields are set).

public boolean
nullSafeEquals(final String stringOne, final String stringTwo)

public int
public String

Returns:

String name of outer class
outerClassString
()

Answer the outer class name for the receiver.

public boolean
public boolean

Returns:

true if the receiver is predicted; answer false if the receiver is specified explicitly in the outer and name fields.
predicted
()

Answer true if the receiver is predicted; answer false if the receiver is specified explicitly in the outer and name fields.

public String

Returns:

String name of inner class
simpleClassName
()

Answer the inner class name for the receiver.

public int
public int
public String

Returns:

String full name of inner class
thisClassString
()

Answer the full name of the inner class represented by this tuple (including its outer component)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

anonymousback to summary
private boolean anonymous
Cback to summary
protected String C
C2back to summary
protected String C2
c2Indexback to summary
private final int c2Index
cachedHashCodeback to summary
private int cachedHashCode
cachedOuterClassIndexback to summary
private int cachedOuterClassIndex
cachedOuterClassStringback to summary
private String cachedOuterClassString
cachedSimpleClassNameback to summary
private String cachedSimpleClassName
cachedSimpleClassNameIndexback to summary
private int cachedSimpleClassNameIndex
cIndexback to summary
private final int cIndex
EMPTY_ARRAYback to summary
pack-priv static final IcTuple[] EMPTY_ARRAY
EMPTY_STRING_ARRAYback to summary
private static final String[] EMPTY_STRING_ARRAY
Fback to summary
protected int F
hashCodeComputedback to summary
private boolean hashCodeComputed
initializedback to summary
private boolean initialized
memberback to summary
private boolean member
Nback to summary
protected String N
NESTED_CLASS_FLAGback to summary
public static final int NESTED_CLASS_FLAG
nIndexback to summary
private final int nIndex
outerIsAnonymousback to summary
private boolean outerIsAnonymous
predictOuterback to summary
private boolean predictOuter
predictSimpleback to summary
private boolean predictSimple
tIndexback to summary
private final int tIndex

Constructor Detail

IcTupleback to summary
public IcTuple(final String C, final int F, final String C2, final String N, final int cIndex, final int c2Index, final int nIndex, final int tIndex)
Parameters
C:String

TODO

F:int

TODO

C2:String

TODO

N:String

TODO

cIndex:int

the index of C in cpClass

c2Index:int

the index of C2 in cpClass, or -1 if C2 is null

nIndex:int

the index of N in cpUTF8, or -1 if N is null

tIndex:int

TODO

Method Detail

computeOuterIsAnonymousback to summary
private boolean computeOuterIsAnonymous()
equalsback to summary
public boolean equals(final Object object)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
object:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
generateHashCodeback to summary
private void generateHashCode()
getCback to summary
public String getC()
getC2back to summary
public String getC2()
getFback to summary
public int getF()
getNback to summary
public String getN()
getTupleIndexback to summary
public int getTupleIndex()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
initializeClassStringsback to summary
private void initializeClassStrings()
innerBreakAtDollarback to summary
public String[] innerBreakAtDollar(final String className)

Break the receiver into components at $ boundaries.

Parameters
className:String

TODO

Returns:String[]

TODO

isAllDigitsback to summary
private boolean isAllDigits(final String nameString)
isAnonymousback to summary
public boolean isAnonymous()
isMemberback to summary
public boolean isMember()
nestedExplicitFlagSetback to summary
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

boolean

nullSafeEqualsback to summary
public boolean nullSafeEquals(final String stringOne, final String stringTwo)
outerClassIndexback to summary
public int outerClassIndex()
outerClassStringback to summary
public String outerClassString()

Answer the outer class name for the receiver. This may either be specified or inferred from inner class name.

Returns:String

String name of outer class

outerIsAnonymousback to summary
public boolean outerIsAnonymous()
predictedback to summary
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:boolean

true if the receiver is predicted; answer false if the receiver is specified explicitly in the outer and name fields.

simpleClassNameback to summary
public String simpleClassName()

Answer the inner class name for the receiver.

Returns:String

String name of inner class

simpleClassNameIndexback to summary
public int simpleClassNameIndex()
thisClassIndexback to summary
public int thisClassIndex()
thisClassStringback to summary
public String thisClassString()

Answer the full name of the inner class represented by this tuple (including its outer component)

Returns:String

String full name of inner class

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override