<s> package org . eclipse . jdt . internal . eval ; import org . eclipse . jdt . core . compiler . CharOperation ; import org . eclipse . jdt . internal . compiler . ClassFile ; public class VariablesInfo { GlobalVariable [ ] variables ; int variableCount ; char [ ] packageName ; char [ ] className ; ClassFile [ ] classFiles ; public VariablesInfo ( char [ ] packageName , char [ ] className , ClassFile [ ] classFiles , GlobalVariable [ ] variables , int variableCount ) { this . packageName = packageName ; this . className = className ; this . classFiles = classFiles ; this . variables = variables ; this . variableCount = variableCount ; } int indexOf ( GlobalVariable var ) { for ( int i = 0 ; i < this . variableCount ; i ++ ) { if ( var . equals ( this . variables [ i ] ) ) { return i ; } } return - 1 ; } GlobalVariable varNamed ( char [ ] name ) { GlobalVariable [ ] vars = this . variables ; for ( int i = 0 ; i < this . variableCount ; i ++ ) { GlobalVariable var = vars [ i ] ; if ( CharOperation . equals ( name , var . name ) ) { return var ; } } return null ; } } </s>