protected void toStringContent(StringBuffer buffer) { int modifiers = getModifiers(); char[] desc = getGenericSignature(); if (desc == null) desc = getMethodDescriptor(); buffer .append('{') .append( ((modifiers & ClassFileConstants.AccDeprecated) != 0 ? "deprecated " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0001) == 1 ? "public " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0002) == 0x0002 ? "private " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0004) == 0x0004 ? "protected " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0008) == 0x000008 ? "static " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0010) == 0x0010 ? "final " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0080) == 0x0080 ? "varargs " : Util.EMPTY_STRING)) //$NON-NLS-1$ .append(getSelector()) .append(desc) .append('}'); } private void readCodeAttribute() {
protected void toStringContent(StringBuffer buffer) { int modifiers = getModifiers(); char[] desc = getGenericSignature(); if (desc == null) desc = getMethodDescriptor(); buffer .append('{') .append( ((modifiers & ClassFileConstants.AccDeprecated) != 0 ? "deprecated " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0001) == 1 ? "public " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0002) == 0x0002 ? "private " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0004) == 0x0004 ? "protected " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0008) == 0x000008 ? "static " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0010) == 0x0010 ? "final " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0080) == 0x0080 ? "varargs " : Util.EMPTY_STRING)) //$NON-NLS-1$ .append(getSelector()) .append(desc) .append('}'); } private void readCodeAttribute() {
protected void toStringContent(StringBuffer buffer) { int modifiers = getModifiers(); char[] desc = getGenericSignature(); if (desc == null) desc = getMethodDescriptor(); buffer .append('{') .append( ((modifiers & ClassFileConstants.AccDeprecated) != 0 ? "deprecated " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0001) == 1 ? "public " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0002) == 0x0002 ? "private " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0004) == 0x0004 ? "protected " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0008) == 0x000008 ? "static " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0010) == 0x0010 ? "final " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0080) == 0x0080 ? "varargs " : Util.EMPTY_STRING)) //$NON-NLS-1$ .append(getSelector()) .append(desc) .append('}'); } private void readCodeAttribute() {
protected void toStringContent(StringBuffer buffer) { int modifiers = getModifiers(); char[] desc = getGenericSignature(); if (desc == null) desc = getMethodDescriptor(); buffer .append('{') .append( ((modifiers & ClassFileConstants.AccDeprecated) != 0 ? "deprecated " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0001) == 1 ? "public " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0002) == 0x0002 ? "private " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0004) == 0x0004 ? "protected " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0008) == 0x000008 ? "static " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0010) == 0x0010 ? "final " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0080) == 0x0080 ? "varargs " : Util.EMPTY_STRING)) //$NON-NLS-1$ .append(getSelector()) .append(desc) .append('}'); } private void readCodeAttribute() {
protected void toStringContent(StringBuffer buffer) { int modifiers = getModifiers(); char[] desc = getGenericSignature(); if (desc == null) desc = getMethodDescriptor(); buffer .append('{') .append( ((modifiers & ClassFileConstants.AccDeprecated) != 0 ? "deprecated " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0001) == 1 ? "public " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0002) == 0x0002 ? "private " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0004) == 0x0004 ? "protected " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0008) == 0x000008 ? "static " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0010) == 0x0010 ? "final " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0080) == 0x0080 ? "varargs " : Util.EMPTY_STRING)) //$NON-NLS-1$ .append(getSelector()) .append(desc) .append('}'); } private void readCodeAttribute() {
protected void toStringContent(StringBuffer buffer) { int modifiers = getModifiers(); char[] desc = getGenericSignature(); if (desc == null) desc = getMethodDescriptor(); buffer .append('{') .append( ((modifiers & ClassFileConstants.AccDeprecated) != 0 ? "deprecated " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0001) == 1 ? "public " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0002) == 0x0002 ? "private " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0004) == 0x0004 ? "protected " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0008) == 0x000008 ? "static " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0010) == 0x0010 ? "final " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0080) == 0x0080 ? "varargs " : Util.EMPTY_STRING)) //$NON-NLS-1$ .append(getSelector()) .append(desc) .append('}'); } private void readCodeAttribute() {
protected void toStringContent(StringBuffer buffer) { int modifiers = getModifiers(); char[] desc = getGenericSignature(); if (desc == null) desc = getMethodDescriptor(); buffer .append('{') .append( ((modifiers & ClassFileConstants.AccDeprecated) != 0 ? "deprecated " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0001) == 1 ? "public " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0002) == 0x0002 ? "private " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0004) == 0x0004 ? "protected " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0008) == 0x000008 ? "static " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0010) == 0x0010 ? "final " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0040) == 0x0040 ? "bridge " : Util.EMPTY_STRING) //$NON-NLS-1$ + ((modifiers & 0x0080) == 0x0080 ? "varargs " : Util.EMPTY_STRING)) //$NON-NLS-1$ .append(getSelector()) .append(desc) .append('}'); } private void readCodeAttribute() {
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
/** * This method is used to fully initialize the contents of the receiver. All methodinfos, fields infos * will be therefore fully initialized and we can get rid of the bytes. */ protected void initialize() { getModifiers(); getSelector(); getMethodDescriptor(); getExceptionTypeNames(); getGenericSignature(); getArgumentNames(); reset(); } /**
private void updateMethod(IBinaryType classFile, MethodInfo methodInfo) { // generic signature updateChars(methodInfo.getGenericSignature()); updateInt(methodInfo.getModifiers()); updateLong(methodInfo.getTagBits() & TagBits.AnnotationDeprecated); updateAnnotations(methodInfo.getAnnotations()); // parameter annotations: for (int i = 0; i < methodInfo.getAnnotatedParametersCount(); i++) { updateAnnotations(methodInfo.getParameterAnnotations(i, classFile.getName())); } updateTypeAnnotations(methodInfo.getTypeAnnotations()); updateChars(methodInfo.getSelector()); updateChars(methodInfo.getMethodDescriptor()); updateChars(methodInfo.getGenericSignature()); char[][] thrownExceptions = methodInfo.getExceptionTypeNames(); for (int i = 0; i < thrownExceptions.length; i++) { updateChars(thrownExceptions[i]); } }
private void updateMethod(IBinaryType classFile, MethodInfo methodInfo) { // generic signature updateChars(methodInfo.getGenericSignature()); updateInt(methodInfo.getModifiers()); updateLong(methodInfo.getTagBits() & TagBits.AnnotationDeprecated); updateAnnotations(methodInfo.getAnnotations()); // parameter annotations: for (int i = 0; i < methodInfo.getAnnotatedParametersCount(); i++) { updateAnnotations(methodInfo.getParameterAnnotations(i, classFile.getName())); } updateTypeAnnotations(methodInfo.getTypeAnnotations()); updateChars(methodInfo.getSelector()); updateChars(methodInfo.getMethodDescriptor()); updateChars(methodInfo.getGenericSignature()); char[][] thrownExceptions = methodInfo.getExceptionTypeNames(); for (int i = 0; i < thrownExceptions.length; i++) { updateChars(thrownExceptions[i]); } }