java.lang.Object
bossa.syntax.Expression
bossa.syntax.PackageExp
- All Implemented Interfaces:
- bossa.util.Located, bossa.util.Printable
- class PackageExp
- extends Expression
Temporary expression to represent a package or a package prefix.
For instance, in java.lang.System.exit(0),
java and java.lang is represented by a package exp.
- Version:
- $Date: 2001/04/18 11:50:40 $
| Methods inherited from class bossa.syntax.Expression |
checkSpecialRequirements, compile, compileAssign, generateCode, generateCodeInCallPosition, getDeclaration, getField, getFieldAccessMethod, getType, getType, isAssignable, isFalse, isFieldAccess, isTrue, isZero, location, noOverloading, resolveOverloading, resolveOverloading, setLocation, staticClass, toArray, toString |
name
java.lang.StringBuffer name
PackageExp
PackageExp(java.lang.String name)
locatedName
LocatedString locatedName()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
error
private void error()
- Unimplemented methods
computeType
void computeType()
- Description copied from class:
Expression
- computes the static type of the expression
- Specified by:
computeType in class Expression
compile
protected gnu.expr.Expression compile()
- Description copied from class:
Expression
- Creates the bytecode expression to evaluate this Expression.
This must be overrided in any Expression, but not called directly.
Call
Expression.generateCode() 55 instead.
- Specified by:
compile in class Expression