Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package javassist.bytecode.annotation;
 /*     */ 
 /*     */ import java.io.IOException;
 /*     */ import java.lang.reflect.Method;
 /*     */ import javassist.ClassPool;
 /*     */ import javassist.bytecode.ConstPool;
 /*     */ 
 /*     */ public class IntegerMemberValue extends MemberValue
 /*     */ {
/*     */   int valueIndex;
/*     */ 
/*     */   public IntegerMemberValue(int indexConstPool cp)
/*     */   {
/*  39 */     super('I', cp);
/*  40 */     this.valueIndex = index;
/*     */   }
/*     */ 
/*     */   public IntegerMemberValue(ConstPool cpint value)
/*     */   {
/*  55 */     super('I', cp);
/*  56 */     setValue(value);
/*     */   }
/*     */ 
/*     */   public IntegerMemberValue(ConstPool cp)
/*     */   {
/*  63 */     super('I', cp);
/*  64 */     setValue(0);
/*     */   }
/*     */ 
/*     */   Object getValue(ClassLoader clClassPool cpMethod m) {
/*  68 */     return new Integer(getValue());
/*     */   }
/*     */ 
/*     */   Class getType(ClassLoader cl) {
/*  72 */     return Integer.TYPE;
/*     */   }
/*     */ 
/*     */   public int getValue()
/*     */   {
/*  79 */     return this.cp.getIntegerInfo(this.valueIndex);
/*     */   }
/*     */ 
/*     */   public void setValue(int newValue)
/*     */   {
/*  86 */     this.valueIndex = this.cp.addIntegerInfo(newValue);
/*     */   }
/*     */ 
/*     */   public String toString()
/*     */   {
/*  93 */     return Integer.toString(getValue());
/*     */   }
/*     */ 
/*     */   public void write(AnnotationsWriter writer)
/*     */     throws IOException
/*     */   {
/* 100 */     writer.constValueIndex(getValue());
/*     */   }
/*     */ 
/*     */   public void accept(MemberValueVisitor visitor)
/*     */   {
/* 107 */     visitor.visitIntegerMemberValue(this);
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     javassist.bytecode.annotation.IntegerMemberValue
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X