tools/JavaDeclarationNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 30 Aug 2013 12:19:02 +0100
branchdevelopment
changeset 2697 d5110c6822c6
parent 2641 79395ea8b58f
child 2711 a00302fe5083
permissions -rw-r--r--
Introducion a JavaSourceDocument. JavaSourceDocument aims to keep various information abou Java source such as parse tree, index, highlighted source. A limited cache of source documents is also maintained to speed up browsing.

"{ Package: 'stx:libjava/tools' }"

JavaParseNode subclass:#JavaDeclarationNode
	instanceVariableNames:'javadoc annotations'
	classVariableNames:''
	poolDictionaries:''
	category:'Languages-Java-Parser-AST'
!


!JavaDeclarationNode methodsFor:'accessing'!

javadoc
    ^ javadoc
!

javadoc:anInterval
    javadoc := anInterval.

    "Modified: / 30-08-2013 / 02:52:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

startPosition
    javadoc notNil ifTrue:[
        ^ javadoc first
    ].
    ^ startPosition.

    "Created: / 30-08-2013 / 02:52:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!JavaDeclarationNode methodsFor:'testing'!

isJavaDeclarationNode
    ^ true
! !

!JavaDeclarationNode class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !