com.ochafik.lang.jnaerator.parser
Class SourceFile

java.lang.Object
  extended by com.ochafik.lang.jnaerator.parser.Element
      extended by com.ochafik.lang.jnaerator.parser.SourceFile
All Implemented Interfaces:
DeclarationsHolder

public class SourceFile
extends Element
implements DeclarationsHolder


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ochafik.lang.jnaerator.parser.DeclarationsHolder
DeclarationsHolder.ListWrapper
 
Field Summary
 
Fields inherited from class com.ochafik.lang.jnaerator.parser.Element
nameSpace, possibleLanguages
 
Constructor Summary
SourceFile()
           
 
Method Summary
 void accept(Visitor visitor)
           
 void addDeclaration(Declaration d)
           
 void addDeclarations(Collection<? extends Declaration> ds)
           
 SourceFile clone()
           
 List<Declaration> getDeclarations()
           
 String getLibrary()
           
 Element getNextChild(Element child)
           
 Element getPreviousChild(Element child)
           
 String guessFramework()
           
 boolean replaceChild(Element child, Element by)
           
 void setDeclarations(List<Declaration> declarations)
           
 void setElementFile(String file)
           
 void setLibrary(String library)
           
 String toString(CharSequence indent)
           
 
Methods inherited from class com.ochafik.lang.jnaerator.parser.Element
addNameSpace, addToCommentBefore, addToCommentBefore, changeValue, changeValue, cleanComment, cloneElements, cloneElements, cloneObject, deepClone, findParentOfType, findParentOfTypes, formatComments, formatComments, getCommentAfter, getCommentBefore, getElementFile, getElementLine, getFileOfAscendency, getGettersAndSetters, getId, getNameSpace, getNextSibling, getNextSibling, getParentElement, getPossibleLanguages, getPreviousSibling, getPreviousSibling, implode, importDetails, insertChild, insertSibling, moveAllCommentsBefore, replaceBy, replaceChild, resolvePossibleLanguages, setCommentAfter, setCommentBefore, setElementLine, setNameSpace, setParentElement, setPossibleLanguages, stripDetails, toString, unmodifiableList
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceFile

public SourceFile()
Method Detail

clone

public SourceFile clone()
Overrides:
clone in class Element

toString

public String toString(CharSequence indent)
Specified by:
toString in class Element

getNextChild

public Element getNextChild(Element child)
Specified by:
getNextChild in class Element

getPreviousChild

public Element getPreviousChild(Element child)
Specified by:
getPreviousChild in class Element

replaceChild

public boolean replaceChild(Element child,
                            Element by)
Specified by:
replaceChild in class Element

setElementFile

public void setElementFile(String file)
Overrides:
setElementFile in class Element

guessFramework

public String guessFramework()

getDeclarations

public List<Declaration> getDeclarations()
Specified by:
getDeclarations in interface DeclarationsHolder

setDeclarations

public void setDeclarations(List<Declaration> declarations)

addDeclaration

public void addDeclaration(Declaration d)
Specified by:
addDeclaration in interface DeclarationsHolder

addDeclarations

public void addDeclarations(Collection<? extends Declaration> ds)

accept

public void accept(Visitor visitor)
Specified by:
accept in class Element

setLibrary

public void setLibrary(String library)

getLibrary

public String getLibrary()


Copyright © 2009. All Rights Reserved.