~francis-giraldeau/noesis/xsugar-strict

« back to all changes in this revision

Viewing changes to src/dk/brics/xsugar/stylesheet/Unit.java

  • Committer: Francis Giraldeau
  • Date: 2009-08-05 13:07:07 UTC
  • Revision ID: francis.giraldeau@revolutionlinux.com-20090805130707-b8p8x13khol5p9o5
ajout des sources

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package dk.brics.xsugar.stylesheet;
 
2
 
 
3
import dk.brics.grammar.parser.Location;
 
4
 
 
5
/**
 
6
 * Abstract base class for all stylesheet nodes.
 
7
 */
 
8
abstract public class Unit {
 
9
        
 
10
        /** Location in source string (for error messages). */
 
11
        private Location loc;
 
12
        
 
13
        Unit(Location loc) {
 
14
            this.loc = loc;
 
15
        }
 
16
        
 
17
        /**
 
18
         * Returns the source location of this node.
 
19
         * @return source location
 
20
         */
 
21
        public Location getLocation() {
 
22
                return loc;
 
23
        }
 
24
}