FileDocCategorySizeDatePackage
ProgramVariable.javaAPI DocAndroid 5.1 API1568Thu Mar 12 22:22:30 GMT 2015android.filterfw.core

ProgramVariable

public class ProgramVariable extends Object
hide

Fields Summary
private Program
mProgram
private String
mVarName
Constructors Summary
public ProgramVariable(Program program, String varName)

        mProgram = program;
        mVarName = varName;
    
Methods Summary
public ProgramgetProgram()

        return mProgram;
    
public java.lang.ObjectgetValue()

        if (mProgram == null) {
            throw new RuntimeException("Attempting to get program variable '" + mVarName
                + "' but the program is null!");
        }
        return mProgram.getHostValue(mVarName);
    
public java.lang.StringgetVariableName()

        return mVarName;
    
public voidsetValue(java.lang.Object value)

        if (mProgram == null) {
            throw new RuntimeException("Attempting to set program variable '" + mVarName
                + "' but the program is null!");
        }
        mProgram.setHostValue(mVarName, value);