jtree

File jtree.str
Author unknown
Since unknown

Utils for Java Abstract Syntax Trees




Statistics


General
Lines of code 269
Stratego
Module number 1 (100% documented)
Constructor number 0
Overlay number 0
Strategy number 37 (35% documented)
Rule number 0
DynamicRule number 0



Strategy summary


apply-to-body-decs-of-typedec(Strategy s) n/a jtree.str
apply-to-body-decs-of-typedec(Strategy s) n/a jtree.str
apply-to-constructor-decs-of-typedec(Strategy s) n/a jtree.str
apply-to-field-decs-of-typedec(Strategy s) n/a jtree.str
apply-to-member-type-decs-of-typedec(Strategy s) n/a jtree.str
apply-to-method-decs-of-typedec(Strategy s) n/a jtree.str
get-body-decs-of-typedec n/a jtree.str
get-body-decs-of-typedec n/a jtree.str
get-constructor-decs-of-typedec n/a jtree.str
get-field-decs-of-typedec n/a jtree.str
get-field-decs-of-typedec n/a jtree.str
get-member-type-decs-of-typedec n/a jtree.str
get-name-of-typedec Returns the name of a type declaration jtree.str
get-name-of-typedec n/a jtree.str
get-package-name-of-compilation-unit n/a jtree.str
get-package-name-of-compilation-unit n/a jtree.str
get-package-of-compilation-unit Returns the package of a compilation unit jtree.str
get-superclass-of-typedec Returns the superclass of a type declaration jtree.str
get-superinterfaces-of-typedec Returns the superinterfaces of a type declaration jtree.str
get-superinterfaces-of-typedec n/a jtree.str
get-type-of-field(ATerm x) n/a jtree.str
get-type-of-param n/a jtree.str
get-vardec-of-field(ATerm x) n/a jtree.str
get-vardecid-of-field(ATerm x) n/a jtree.str
is-class-init-method n/a jtree.str
is-float-literal Succeeds if this is a float literal (ends with f or F) jtree.str
is-floating-point-literal Succeeds if this is a float or double literal jtree.str
is-instance-init-method Succeeds if this is an instance initialization method (constructor) jtree.str
is-integer-literal Succeeds if this is an integer literal (Long or Int) jtree.str
is-integer-literal n/a jtree.str
is-integer-literal n/a jtree.str
is-long-literal Succeeds if this is a long literal jtree.str
pack-compilation-unit Dirty hack jtree.str
test-last-char(Strategy s) s is applied to the last character of the string jtree.str
type-add-dimensions-from-id(ATerm vardecid) n/a jtree.str
type-add-dimensions-from-id(ATerm vardecid) n/a jtree.str
unpack-compilation-unit Dirty hack jtree.str



Strategy details


ATerm get-name-of-typedec
File jtree.str
Author unknown
Since unknown
 

Returns the name of a type declaration.


type TypeDec -> Strintg

 
ATerm get-package-of-compilation-unit
File jtree.str
Author unknown
Since unknown
 

Returns the package of a compilation unit.

The package is created if it does not exist.


type CompilationUnit -> Package Object

 
ATerm get-superclass-of-typedec
File jtree.str
Author unknown
Since unknown
 

Returns the superclass of a type declaration.

This strategy does not return java.lang.Object if no superclassis defined.


type TypeDec -> Type

 
ATerm get-superinterfaces-of-typedec
File jtree.str
Author unknown
Since unknown
 

Returns the superinterfaces of a type declaration.

This strategy fails if no interfaces are implemented.


type TypeDec -> List(Type)

 
ATerm is-float-literal
File jtree.str
Author unknown
Since unknown
 

Succeeds if this is a float literal (ends with f or F)


type Expr -> Expr

 
ATerm is-floating-point-literal
File jtree.str
Author unknown
Since unknown
 

Succeeds if this is a float or double literal.



 
ATerm is-instance-init-method
File jtree.str
Author unknown
Since unknown
 

Succeeds if this is an instance initialization method (constructor).


type Bytecode Method -> Bytecode Method

 
ATerm is-integer-literal
File jtree.str
Author unknown
Since unknown
 

Succeeds if this is an integer literal (Long or Int)


type Expr -> Expr

 
ATerm is-long-literal
File jtree.str
Author unknown
Since unknown
 

Succeeds if this is a long literal


type Expr -> Expr

 
ATerm pack-compilation-unit
File jtree.str
Author unknown
Since unknown
 

Dirty hack.


type List(CompilationUnit) -> CompilationUnit

 
ATerm test-last-char(Strategy s)
File jtree.str
Author unknown
Since unknown
 

s is applied to the last character of the string


type String -> String

 
ATerm type-add-dimensions-from-id(ATerm vardecid)
File jtree.str
Author unknown
Since unknown
 

No information available.


type Type -> Type

 
ATerm unpack-compilation-unit
File jtree.str
Author unknown
Since unknown
 

Dirty hack.


type CompilationUnit -> List(CompilationUnit)