Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

bossa.syntax
Class PackageExp  view PackageExp download PackageExp.java

java.lang.Object
  extended bybossa.syntax.Expression
      extended bybossa.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 $

Field Summary
(package private)  java.lang.StringBuffer name
           
 
Fields inherited from class bossa.syntax.Expression
noExpressions, type
 
Fields inherited from interface bossa.util.Printable
detailed, inConstraint, parsable
 
Constructor Summary
(package private) PackageExp(java.lang.String name)
           
 
Method Summary
protected  gnu.expr.Expression compile()
          Creates the bytecode expression to evaluate this Expression.
(package private)  void computeType()
          computes the static type of the expression
private  void error()
          Unimplemented methods
(package private)  LocatedString locatedName()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

java.lang.StringBuffer name
Constructor Detail

PackageExp

PackageExp(java.lang.String name)
Method Detail

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