1 19 20 package soot.xml; 21 22 import soot.*; 23 24 public class ColorAttribute{ 25 26 private int red; 27 private int green; 28 private int blue; 29 private int fg; 30 private String analysisType; 31 32 public ColorAttribute(int red, int green, int blue, boolean fg, String type){ 33 this.red = red; 34 this.green = green; 35 this.blue = blue; 36 if (fg){ 37 this.fg = 1; 38 } 39 else { 40 this.fg = 0; 41 } 42 analysisType = type; 43 } 44 45 public int red(){ 46 return red; 47 } 48 49 public int green(){ 50 return green; 51 } 52 53 public int blue(){ 54 return blue; 55 } 56 57 public int fg(){ 58 return fg; 59 } 60 61 public String analysisType(){ 62 return analysisType; 63 } 64 65 } 66 | Popular Tags |