FileDocCategorySizeDatePackage
SimpleAttributeValue.javaAPI DocJava SE 5 API2450Fri Aug 26 14:55:36 BST 2005com.sun.org.apache.xalan.internal.xsltc.compiler

SimpleAttributeValue

public final class SimpleAttributeValue extends AttributeValue
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen

Fields Summary
private String
_value
Constructors Summary
public SimpleAttributeValue(String value)
Creates a new simple attribute value.

param
value the attribute value.

	_value = value;
    
Methods Summary
protected booleancontextDependent()

	return false;
    
public java.lang.StringtoString()

	return _value;
    
public voidtranslate(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen)
Translate this attribute value into JVM bytecodes that pushes the attribute value onto the JVM's stack.

param
classGen BCEL Java class generator
param
methodGen BCEL Java method generator

	final ConstantPoolGen cpg = classGen.getConstantPool();
	final InstructionList il = methodGen.getInstructionList();
	il.append(new PUSH(cpg, _value));
    
public com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypetypeCheck(com.sun.org.apache.xalan.internal.xsltc.compiler.SymbolTable stable)
Returns this attribute value's type (String).

param
stable The compiler/parser's symbol table

	return _type = Type.String;