1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import java.util.*; 25 26 37 public class FromNode extends MajorNode { 38 39 private List declarations; 40 41 public String getFirstVariable() { 42 String variable = null; 43 if ((declarations != null) && (declarations.size() > 0)) { 44 variable = ((IdentificationVariableDeclNode)declarations.get(0)).getCanonicalVariableName(); 45 } 46 return variable; 47 } 48 49 public List getDeclarations() { 50 return declarations; 51 } 52 53 public void setDeclarations(List decls) { 54 declarations = decls; 55 } 56 57 61 public void validate(ParseTreeContext context) { 62 for (Iterator i = declarations.iterator(); i.hasNext();) { 63 Node decl = (Node)i.next(); 64 decl.validate(context); 65 } 66 } 67 } 68 | Popular Tags |